Qualitative Programming using ChatGPT
Traditional computer programming relies on manipulating well defined quanta, for example, numbers, Boolean values or strings. However, people don’t function at this level, they tend to be more holistic and conceptual.
Therefore, to create a computer system that takes human input, processes it and produces a meaningful output, the following steps are necessary:
- Accept human input via a UI.
- Convert human input to discrete quanta.
- Process the discrete quanta.
- Reassemble the program’s output into a human-conceptual form.
- Present the output to the user.
Leveraging the Power of AI Chatbots
AI chatbots such as ChatGPT change this paradigm, since they are effectively capable of native qualitative information processing. This means that (from a user perspective) they can natively analyse and process information that is meaningful to humans.
Subsequently, we can use the following information processing paradigm:
- Accept human input via a UI.
- Perform qualitative analysis of the human input.
- Process the discrete (analysed) qualitative components of the input.
- Reassemble the qualitative program output into a material, holistic form.
- Present the output to the user.
In other words, ChatGPT et al entirely change the programming landscape by allowing native qualitative data processing.
Using Transactional Analysis for Mood Analysis
Transactional Analysis is an psychoanalytical method that allows us to identify the mood components represented by a physical artifact, such as a recipe.
- For a brief introduction to Transactional Analysis, see this post.
- For an example of how a “Transactional Analysis”-like method can be used in conceptual problem solving using ChatGPT, see this post.
The following example shows how we can apply this method to adjusting a recipe to suit the user’s mood.
Generating Mood Based Recipes with ChatGPT
As an example of qualitative data processing, it is possible to ask ChatGPT to perform mood analysis of a recipe, i.e. it is possible to ask ChatGPT to analyse the moods that are invoked by a recipe, as well as analysing the basic nutritional value provided by a recipe. After ChatGPT has identified the mood of the recipe, we can then ask ChatGPT to create a new recipe based on an adjusted mood.
- Input: An existing recipe.
- Task: Based on mood, adjust the recipe accordingly.
- Output: New recipe adjusted to suit mood.
In this case ChatGPT has performed the following processing steps.
Qualitative Programming Step | Example scenario |
Accept human input via a UI. | The recipe. |
Perform qualitative analysis of the human input, in human terms. | Analyse the moods invoked by the recipe. |
Process the discrete qualitative aspects of the program input. | Adjust that part of the recipe that reflects the user’s mood. |
Reassemble the qualitative program output into a holistic form. | Combine the unchanged and adjusted parts of the recipe. |
Present the output to the user. | Present a new recipe to the user. |
Recipe Mood Analysis
As an example of this method, let’s ask ChatGPT to psychoanalyse the mood components of a recipe for Creamy Chicken and Mushroom Risotto:
User
In the following recipe, identify the parts of the recipe that appeal to the TA Adult (i.e. nutritional etc.), the parts of the recipe that appeal to the TA Parent (i.e. haute cuisine and class), and the parts of the recipe that appeal to the TA Child (i.e. “yumminess” etc.):
Creamy Chicken and Mushroom Risotto
Ingredients:
- For the Chicken and Mushroom Mixture:
- 2 tbsp olive oil
- 2 boneless, skinless chicken breasts, diced
- Salt and pepper to taste
- 1 onion, finely chopped
- 2 cloves garlic, minced
- 8 oz (227g) mushrooms, sliced
- 1/4 cup white wine (optional)
- For the Risotto:
- 1 1/2 cups Arborio rice
- 4 cups chicken broth (warm)
- 1 cup warm water
- 2 tbsp unsalted butter
- 1/2 cup grated Parmesan cheese
- 1/4 cup heavy cream
- Chopped fresh parsley, for garnish
- Salt and pepper to taste
Instructions:
- Chicken and Mushroom Mixture:
- In a large skillet, heat the olive oil over medium-high heat.
- Season the diced chicken with salt and pepper and add to the skillet. Cook until browned on all sides.
- Add the chopped onion to the skillet and sauté until translucent.
- Stir in the minced garlic and cook for an additional 1-2 minutes.
- Add the sliced mushrooms and cook until they release their juices and start to brown.
- If using, pour in the white wine and let it simmer until reduced by half. Remove from heat and set aside.
- Risotto:
- In a separate, large saucepan, melt the butter over medium heat.
- Add the Arborio rice and stir to coat the grains with butter. Cook for 1-2 minutes until the edges of the rice grains look translucent.
- Begin adding the warm chicken broth, a ladle at a time, stirring constantly and waiting for the liquid to be mostly absorbed before adding more.
- Once you’ve used all the chicken broth and the rice is nearly tender, stir in the warm water in the same manner.
- Fold in the chicken and mushroom mixture. Allow it to simmer together for a few minutes.
- Stir in the grated Parmesan cheese and heavy cream. Continue to cook, stirring constantly, until the risotto is creamy and the rice is al dente.
- Season with salt and pepper to taste.
- Serving:
- Serve the risotto hot, garnished with chopped fresh parsley.
ChatGPT gives us the following response:
ChatGPT
Let’s break down the aspects of this recipe that would appeal to the three different target audiences you mentioned: the TA Adult, the TA Parent, and the TA Child.
Appealing to TA Adult (Nutritional aspects, healthiness):
- Olive oil: A heart-healthy source of fats known for its nutritional benefits.
- Boneless, skinless chicken breasts: Lean protein that is beneficial for muscle health and overall protein intake.
- Mushrooms: Low in calories and a source of various vitamins and minerals.
- Onion and garlic: Contain antioxidants and are known to have various health benefits.
- Arborio rice: While it is a refined grain, it does provide energy and is a source of some vitamins and minerals.
Appealing to TA Parent (Haute cuisine, class, presentation):
- White wine (optional): Using wine in cooking gives a sophisticated edge to recipes.
- Grated Parmesan cheese: Authentic Italian ingredient, enhances flavor profile, and sophistication.
- Heavy cream: Adds richness and luxury to the dish.
- Chopped fresh parsley, for garnish: Garnishing is an essential part of presentation in high-end cooking.
- Risotto: As a dish, risotto is often considered gourmet and is a staple in fine dining.
- Instructions: The method of slowly adding broth to the rice and constantly stirring is a traditional, often considered gourmet, way of cooking risotto.
Appealing to TA Child (“Yumminess”, appealing taste, simplicity):
- Creamy texture: Kids often enjoy creamy and soft-textured foods.
- Parmesan cheese and heavy cream: Adds richness and a delectable flavor that many kids love.
- Chicken: A familiar and often kid-friendly protein source.
- Butter: Adds a rich taste to the risotto that children often enjoy.
- Salt and pepper to taste: Allows for flavor adjustment to the preferred taste, which could be milder for children.
Overall, this Creamy Chicken and Mushroom Risotto recipe incorporates elements that could appeal to a range of audiences, making it a versatile dish for families and gatherings.
Adjusting the Recipe by Mood
Now let’s ask ChatGPT to adjust the recipe by emphasising the elements of the recipe that relate to specific elements of the persona.
Adult-centric Recipe
User
Increase the Adult appeal of this recipe: “[…] “
Response:
ChatGPT
To increase the Adult appeal of this recipe in terms of nutritional value and healthiness, consider making the following modifications:
Ingredients:
- Replace Boneless, Skinless Chicken Breasts: Use a more nutritionally-dense protein like quinoa or keep the chicken but add spinach or kale, both of which are high in vitamins, minerals, and fiber.
- Whole Grain Arborio Rice: Instead of traditional Arborio rice, you could use a whole grain version, which retains more of its natural nutrients and provides more dietary fiber.
- Reduce Heavy Cream: Use less heavy cream or replace some of it with Greek yogurt which will still give creaminess but adds probiotics and protein.
- Nuts & Seeds: Add toasted pine nuts or flaxseeds for added crunch, healthy fats, and Omega-3s.
- Broth: Opt for a low-sodium vegetable broth. Reducing sodium can be a health-conscious decision.
- Herbs & Spices: Introduce more antioxidant-rich herbs like thyme, rosemary, or oregano. Not only do these add flavor, but they also have health benefits.
- Lemon Zest: Add some zest for a fresh twist and a boost of vitamin C.
Instructions:
- If using quinoa, ensure it’s well rinsed and cooked until translucent, much like the Arborio rice.
- If adding greens like spinach or kale, fold them in towards the end of the cooking process, allowing them to wilt into the risotto.
- Toast the pine nuts or flaxseeds separately and stir into the risotto or use as a garnish on top.
Appealing to TA Adult (Nutritional aspects, healthiness):
- Quinoa: A complete protein that also offers fiber, vitamins, and minerals.
- Whole Grain Arborio Rice: Offers more fiber and nutrients than its refined counterpart.
- Greek Yogurt: Provides probiotics beneficial for gut health and extra protein.
- Spinach/Kale: Rich in vitamins A, C, K, and many minerals.
- Pine Nuts/Flaxseeds: Source of healthy fats, particularly Omega-3s.
- Low-Sodium Vegetable Broth: Reduces sodium intake, beneficial for heart health.
- Herbs: Additional herbs bring in antioxidants and flavor without added calories.
- Lemon Zest: Provides vitamin C and fresh flavor.
With these changes, the risotto not only retains its classic creamy texture and luxurious feel but also gets a significant boost in terms of nutrition, making it even more appealing to the health-conscious adult audience.
Parent-centric Recipe
User
Increase the TA Parent appeal of this recipe: “[…] “
Response:
ChatGPT
To enhance the appeal to the TA Parent, focusing on haute cuisine, class, and presentation, you can introduce a touch more sophistication, aesthetic appeal, and subtle nuances to the ingredients and preparation methods. Here’s how you can elevate the recipe:
Ingredients:
- Truffle Oil: A drizzle at the end can elevate the dish to gourmet status.
- Saffron: A few threads will impart a luxurious golden hue and a unique taste.
- Substitute Regular Mushrooms: Use a gourmet variety like shiitake, chanterelles, or morels.
- Fresh Herbs: Introduce fresh basil or chervil in addition to parsley, enhancing flavor and visual appeal.
- Aged Parmesan or Pecorino: A higher quality cheese will elevate the dish’s sophistication.
- Vegetable Stock: Consider homemade vegetable stock instead of store-bought, or use a premium brand.
- White Wine: Opt for a higher quality wine, perhaps even specifying a recommended type, such as a Chardonnay or Sauvignon Blanc.
Instructions:
- Wine: When introducing the wine, mention “deglazing the pan” which adds a more professional touch to the method.
- Presentation: Serve in a shallow bowl, garnished not only with parsley but also with some grated cheese and a drizzle of truffle oil.
- Saffron: If using, add the threads early in the cooking process to ensure the color and flavor infuse throughout the dish.
Appealing to TA Parent (Haute cuisine, class, presentation):
- Truffle Oil: Known for its luxurious flavor and often associated with gourmet dining.
- Saffron: Often referred to as the world’s most expensive spice, adds a touch of luxury.
- Gourmet Mushrooms: Enhances the overall flavor and gives the dish a more upscale feel.
- Fresh Herbs: Adds an artisanal touch to the dish.
- Aged Parmesan or Pecorino: Premium cheeses improve taste and add class.
- Homemade Vegetable Stock: Imparts a richer, more authentic flavor.
- Wine Recommendation: Shows expertise and caters to a more discerning palate.
- Instructions and Presentation: More refined instructions ensure a sophisticated preparation and final appearance.
By integrating these changes, the risotto becomes a dish that speaks more to those who appreciate fine dining and the nuances of haute cuisine, while still retaining its original character.
Child-centric Recipe
User
Increase the TA Child appeal of this recipe: “[…] “
Response:
ChatGPT
To further appeal to the TA Child, consider ingredients and preparation methods that cater to their tastes and preferences, while ensuring the dish remains fun and visually appealing. Here’s how you can adapt the recipe:
Ingredients:
- Cheese: Consider adding a handful of mozzarella or cheddar cubes into the mix. These melt well and add a gooey, cheesy delight that many children love.
- Peas and Carrots: These colorful veggies can be introduced for a pop of color and a slightly sweeter taste.
- Chicken: Use bite-sized pieces or even fun shapes, which can be more visually appealing and easier to eat for children.
- Broth: A milder or even vegetable broth could be more appealing than a stronger chicken broth.
- Optional Toppings: Offer toppings like crispy fried onions, bread crumbs, or even a sprinkle of bacon bits to add a crunchy texture.
Instructions:
- Cheese Integration: Once the risotto is nearly done, fold in the cheese cubes until they’re partially melted, creating pockets of gooey cheese.
- Fun Chicken Shapes: If you can find (or make) chicken in fun shapes, this can be a hit.
- Vegetables: Introduce peas and diced carrots during the cooking process so they’re soft and flavorful.
- Interactive Serving: Allow children to sprinkle their chosen toppings over their servings, making the eating experience interactive and personalized.
Appealing to TA Child (“Yumminess”, appealing taste, simplicity):
- Cheesy Goodness: Kids often love the gooey texture and taste of melted cheese.
- Fun Veggies: Peas and carrots can add a fun, colorful, and slightly sweet dimension to the dish.
- Chicken Shapes: Making the protein source more visually appealing can enhance their eating experience.
- Milder Broth: A less overpowering taste could be more suitable for young palates.
- Crunchy Toppings: A mix of textures can be enjoyable and makes the dish more dynamic.
- Interactive Dining: Letting children personalize their food often increases their interest and enjoyment of the meal.
These tweaks ensure the risotto becomes a fun, interactive, and delicious experience for children while still retaining its core essence.
Making Mood Specific Recipes
Now, instead of just adjusting the recipe to emphasise a specific mood, let’s ask ChatGPT to split out those parts of the recipe that relate to a specific aspect of the human psyche.
Recipe for the Child
User
Make an entirely new recipe that ONLY reflects the Child aspects of the original recipe.
Response:
ChatGPT
Sure! Keeping in mind the Child ego state which focuses on wants, desires, feelings, creativity, spontaneity, and simplicity, let’s create a recipe that emphasizes comfort, indulgence, and an element of playfulness.
Fun & Creamy Cheesy Risotto Bites
Ingredients:
- Arborio rice: Creamy when cooked, this will be the heart of our playful dish.
- Butter: For that rich and familiar taste, making our bites irresistibly scrumptious.
- Grated Parmesan cheese: Giving our bites a cheesy punch that kids and the inner child in all of us would love.
- Heavy cream: Making the risotto bites ultra creamy and luxurious.
- Salt and pepper to taste: Keep the seasoning simple and straightforward.
- Bread crumbs: For an extra crunchy outside.
- Dipping sauce (optional): Marinara sauce or a simple creamy garlic dip.
Instructions:
- Start by cooking the Arborio rice according to package directions but make it slightly overcooked, so it’s extra soft and creamy.
- In a large mixing bowl, while the rice is still warm, add butter, heavy cream, and Parmesan cheese. Mix well until everything is creamy and combined. Season with salt and pepper.
- Once the mixture has cooled down a bit but is still moldable, roll them into small bite-sized balls. If the mixture is too loose, place it in the refrigerator for about 20-30 minutes to firm up.
- Roll these rice balls in bread crumbs, ensuring they’re coated evenly.
- Heat some oil in a pan and fry these risotto bites until they’re golden brown and crispy. Alternatively, you can bake them in a preheated oven at 400°F (200°C) for about 15-20 minutes or until golden.
- Serve warm with your favorite dipping sauce on the side.
These Cheesy Risotto Bites are an embodiment of the Child’s whimsical nature, bringing forth elements of comfort, playfulness, and indulgence. Perfect for parties, snacking, or whenever you want to indulge your inner child!
Recipe for the Parent
User
Make an entirely new recipe that ONLY reflects the Parent aspects of the original recipe.
Response:
ChatGPT
Certainly! Focusing on the Parent ego state, which emphasizes tradition, protection, nurturance, and societal norms, let’s design a recipe that exudes sophistication, class, and an adherence to time-tested culinary methods and practices.
Elegant Mushroom and Wine Risotto
Ingredients:
- Arborio rice: A refined grain, fundamental to an authentic risotto.
- White wine: Adds depth and sophistication to the dish.
- Dried Porcini mushrooms: Known for their rich, earthy flavor and used in gourmet dishes.
- Vegetable broth: Maintains the vegetarian integrity of the dish.
- Shallots: A refined alternative to onions, offering a subtle and delicate flavor.
- Grated Pecorino Romano cheese: An aged Italian cheese, offering a sharp, salty taste, adding an element of luxury.
- Extra-virgin olive oil: Not just any olive oil, but the finest for a gourmet touch.
- Fresh thyme: A classic herb that elevates the dish.
- Chopped fresh parsley: Essential for garnish and to add a touch of color and freshness.
- Salt and freshly ground black pepper: For seasoning.
Instructions:
- Begin by soaking the dried Porcini mushrooms in hot water for about 30 minutes. Once softened, chop them, reserving the soaking liquid.
- In a large, heavy-bottomed pan, heat the extra-virgin olive oil over medium heat. Add the finely chopped shallots, sautéing until translucent.
- Add the Arborio rice to the pan, stirring continuously until the grains are toasted and have a golden hue.
- Pour in the white wine, stirring continuously until the wine has mostly evaporated.
- Begin adding the vegetable broth, one ladle at a time, ensuring each addition is absorbed before adding more. This method, rooted in tradition, ensures a creamy, well-cooked risotto.
- Halfway through adding the broth, incorporate the rehydrated Porcini mushrooms and a bit of the reserved soaking liquid, being careful to avoid any grit.
- Continue adding the broth until the rice is cooked al dente and has a creamy consistency.
- Stir in the Pecorino Romano cheese, fresh thyme leaves, salt, and freshly ground black pepper. Mix until the cheese is melted and well-integrated.
- Serve hot, garnished with freshly chopped parsley and a drizzle of extra-virgin olive oil.
This Elegant Mushroom and Wine Risotto pays homage to the Parent ego state, with its emphasis on tradition, sophistication, and the norms of haute cuisine. Perfect for a formal dinner or when aiming to impress with classic culinary skills!
Recipe for the Adult
User
Now make an entirely new recipe that ONLY reflects the Adult aspects of the original recipe.
Response:
ChatGPT
Absolutely! The Adult ego state is based on data and facts, focusing on rationality, objectivity, and functionality. For this recipe, I’ll emphasize the nutritional and health aspects, ensuring each ingredient serves a purpose towards health and well-being.
Nutrient-Packed Quinoa Risotto
Ingredients:
- Quinoa: A protein-rich grain, complete with all nine essential amino acids. It’s also high in fiber, magnesium, B vitamins, iron, potassium, calcium, phosphorus, vitamin E, and antioxidants.
- Extra-virgin olive oil: A heart-healthy source of fats known for its nutritional benefits.
- Kale: High in vitamins A, K, and C, as well as being a good source of calcium and iron.
- Red bell pepper: Rich in vitamin C, potassium, and antioxidants.
- Broccoli: Contains vitamins K and C, a good source of folate (folic acid) and also provides potassium, fiber.
- Garlic and onion: Known for their antioxidant properties and potential health benefits.
- Lemon zest: Adds flavor and is packed with vitamin C.
- Vegetable broth: To cook quinoa and to keep the dish vegetarian.
- Chia seeds: For added protein, fiber, and omega-3s.
- Salt and pepper: For seasoning and balance.
Instructions:
- Begin by rinsing the quinoa under cold water to remove its natural coating (saponin) that can make it taste bitter.
- In a large pan, heat the olive oil over medium heat. Add finely chopped onion and minced garlic, sautéing until translucent.
- Add the quinoa to the pan, stirring it for a couple of minutes.
- Gradually add the vegetable broth, letting the quinoa absorb it, similar to the method used in making risotto.
- Halfway through, add chopped kale, diced red bell pepper, and broccoli florets. This ensures the vegetables maintain their crunch and nutritional value.
- Continue adding broth until the quinoa is fully cooked and has a creamy consistency.
- Finish by stirring in the lemon zest and chia seeds. Season with salt and pepper to taste.
- Serve hot, ensuring a balanced distribution of quinoa and vegetables in each serving.
This Nutrient-Packed Quinoa Risotto is crafted to cater to the Adult ego state, focusing on objective health benefits, nutritional balance, and functionality in every bite. It’s a meal that feeds the mind as much as the body!
Conclusion
By leveraging AI tools such as ChatGPT, it is possible to create a new information processing paradigm that bypasses the analog → digital → analog round trip, and that provides direct data processing and manipulation in human terms.
The above method could be applied to any field in which the underlying AI is able to both identify the human element of the physical interaction and also to understand how the human perspective is expressed in physical reality.