Qualitative Programming using ChatGPT

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:

  1. Accept human input via a UI.
  2. Convert human input to discrete quanta.
  3. Process the discrete quanta.
  4. Reassemble the program’s output into a human-conceptual form.
  5. 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:

  1. Accept human input via a UI.
  2. Perform qualitative analysis of the human input.
  3. Process the discrete (analysed) qualitative components of the input.
  4. Reassemble the qualitative program output into a material, holistic form.
  5. 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:

  1. 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)
  2. 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:

  1. Chicken and Mushroom Mixture:
    1. In a large skillet, heat the olive oil over medium-high heat.
    2. Season the diced chicken with salt and pepper and add to the skillet. Cook until browned on all sides.
    3. Add the chopped onion to the skillet and sauté until translucent.
    4. Stir in the minced garlic and cook for an additional 1-2 minutes.
    5. Add the sliced mushrooms and cook until they release their juices and start to brown.
    6. If using, pour in the white wine and let it simmer until reduced by half. Remove from heat and set aside.
  2. Risotto:
    1. In a separate, large saucepan, melt the butter over medium heat.
    2. 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.
    3. 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.
    4. Once you’ve used all the chicken broth and the rice is nearly tender, stir in the warm water in the same manner.
    5. Fold in the chicken and mushroom mixture. Allow it to simmer together for a few minutes.
    6. 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.
    7. Season with salt and pepper to taste.
  3. Serving:
    1. 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):

  1. Olive oil: A heart-healthy source of fats known for its nutritional benefits.
  2. Boneless, skinless chicken breasts: Lean protein that is beneficial for muscle health and overall protein intake.
  3. Mushrooms: Low in calories and a source of various vitamins and minerals.
  4. Onion and garlic: Contain antioxidants and are known to have various health benefits.
  5. 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):

  1. White wine (optional): Using wine in cooking gives a sophisticated edge to recipes.
  2. Grated Parmesan cheese: Authentic Italian ingredient, enhances flavor profile, and sophistication.
  3. Heavy cream: Adds richness and luxury to the dish.
  4. Chopped fresh parsley, for garnish: Garnishing is an essential part of presentation in high-end cooking.
  5. Risotto: As a dish, risotto is often considered gourmet and is a staple in fine dining.
  6. 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):

  1. Creamy texture: Kids often enjoy creamy and soft-textured foods.
  2. Parmesan cheese and heavy cream: Adds richness and a delectable flavor that many kids love.
  3. Chicken: A familiar and often kid-friendly protein source.
  4. Butter: Adds a rich taste to the risotto that children often enjoy.
  5. 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:

  1. 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.
  2. 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.
  3. 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.
  4. Nuts & Seeds: Add toasted pine nuts or flaxseeds for added crunch, healthy fats, and Omega-3s.
  5. Broth: Opt for a low-sodium vegetable broth. Reducing sodium can be a health-conscious decision.
  6. Herbs & Spices: Introduce more antioxidant-rich herbs like thyme, rosemary, or oregano. Not only do these add flavor, but they also have health benefits.
  7. Lemon Zest: Add some zest for a fresh twist and a boost of vitamin C.

Instructions:

  1. If using quinoa, ensure it’s well rinsed and cooked until translucent, much like the Arborio rice.
  2. If adding greens like spinach or kale, fold them in towards the end of the cooking process, allowing them to wilt into the risotto.
  3. 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):

  1. Quinoa: A complete protein that also offers fiber, vitamins, and minerals.
  2. Whole Grain Arborio Rice: Offers more fiber and nutrients than its refined counterpart.
  3. Greek Yogurt: Provides probiotics beneficial for gut health and extra protein.
  4. Spinach/Kale: Rich in vitamins A, C, K, and many minerals.
  5. Pine Nuts/Flaxseeds: Source of healthy fats, particularly Omega-3s.
  6. Low-Sodium Vegetable Broth: Reduces sodium intake, beneficial for heart health.
  7. Herbs: Additional herbs bring in antioxidants and flavor without added calories.
  8. 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:

  1. Truffle Oil: A drizzle at the end can elevate the dish to gourmet status.
  2. Saffron: A few threads will impart a luxurious golden hue and a unique taste.
  3. Substitute Regular Mushrooms: Use a gourmet variety like shiitake, chanterelles, or morels.
  4. Fresh Herbs: Introduce fresh basil or chervil in addition to parsley, enhancing flavor and visual appeal.
  5. Aged Parmesan or Pecorino: A higher quality cheese will elevate the dish’s sophistication.
  6. Vegetable Stock: Consider homemade vegetable stock instead of store-bought, or use a premium brand.
  7. White Wine: Opt for a higher quality wine, perhaps even specifying a recommended type, such as a Chardonnay or Sauvignon Blanc.

Instructions:

  1. Wine: When introducing the wine, mention “deglazing the pan” which adds a more professional touch to the method.
  2. Presentation: Serve in a shallow bowl, garnished not only with parsley but also with some grated cheese and a drizzle of truffle oil.
  3. 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):

  1. Truffle Oil: Known for its luxurious flavor and often associated with gourmet dining.
  2. Saffron: Often referred to as the world’s most expensive spice, adds a touch of luxury.
  3. Gourmet Mushrooms: Enhances the overall flavor and gives the dish a more upscale feel.
  4. Fresh Herbs: Adds an artisanal touch to the dish.
  5. Aged Parmesan or Pecorino: Premium cheeses improve taste and add class.
  6. Homemade Vegetable Stock: Imparts a richer, more authentic flavor.
  7. Wine Recommendation: Shows expertise and caters to a more discerning palate.
  8. 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:

  1. 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.
  2. Peas and Carrots: These colorful veggies can be introduced for a pop of color and a slightly sweeter taste.
  3. Chicken: Use bite-sized pieces or even fun shapes, which can be more visually appealing and easier to eat for children.
  4. Broth: A milder or even vegetable broth could be more appealing than a stronger chicken broth.
  5. Optional Toppings: Offer toppings like crispy fried onions, bread crumbs, or even a sprinkle of bacon bits to add a crunchy texture.

Instructions:

  1. Cheese Integration: Once the risotto is nearly done, fold in the cheese cubes until they’re partially melted, creating pockets of gooey cheese.
  2. Fun Chicken Shapes: If you can find (or make) chicken in fun shapes, this can be a hit.
  3. Vegetables: Introduce peas and diced carrots during the cooking process so they’re soft and flavorful.
  4. 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):

  1. Cheesy Goodness: Kids often love the gooey texture and taste of melted cheese.
  2. Fun Veggies: Peas and carrots can add a fun, colorful, and slightly sweet dimension to the dish.
  3. Chicken Shapes: Making the protein source more visually appealing can enhance their eating experience.
  4. Milder Broth: A less overpowering taste could be more suitable for young palates.
  5. Crunchy Toppings: A mix of textures can be enjoyable and makes the dish more dynamic.
  6. 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:

  1. Arborio rice: Creamy when cooked, this will be the heart of our playful dish.
  2. Butter: For that rich and familiar taste, making our bites irresistibly scrumptious.
  3. Grated Parmesan cheese: Giving our bites a cheesy punch that kids and the inner child in all of us would love.
  4. Heavy cream: Making the risotto bites ultra creamy and luxurious.
  5. Salt and pepper to taste: Keep the seasoning simple and straightforward.
  6. Bread crumbs: For an extra crunchy outside.
  7. Dipping sauce (optional): Marinara sauce or a simple creamy garlic dip.

Instructions:

  1. Start by cooking the Arborio rice according to package directions but make it slightly overcooked, so it’s extra soft and creamy.
  2. 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.
  3. 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.
  4. Roll these rice balls in bread crumbs, ensuring they’re coated evenly.
  5. 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.
  6. 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:

  1. Arborio rice: A refined grain, fundamental to an authentic risotto.
  2. White wine: Adds depth and sophistication to the dish.
  3. Dried Porcini mushrooms: Known for their rich, earthy flavor and used in gourmet dishes.
  4. Vegetable broth: Maintains the vegetarian integrity of the dish.
  5. Shallots: A refined alternative to onions, offering a subtle and delicate flavor.
  6. Grated Pecorino Romano cheese: An aged Italian cheese, offering a sharp, salty taste, adding an element of luxury.
  7. Extra-virgin olive oil: Not just any olive oil, but the finest for a gourmet touch.
  8. Fresh thyme: A classic herb that elevates the dish.
  9. Chopped fresh parsley: Essential for garnish and to add a touch of color and freshness.
  10. Salt and freshly ground black pepper: For seasoning.

Instructions:

  1. Begin by soaking the dried Porcini mushrooms in hot water for about 30 minutes. Once softened, chop them, reserving the soaking liquid.
  2. In a large, heavy-bottomed pan, heat the extra-virgin olive oil over medium heat. Add the finely chopped shallots, sautéing until translucent.
  3. Add the Arborio rice to the pan, stirring continuously until the grains are toasted and have a golden hue.
  4. Pour in the white wine, stirring continuously until the wine has mostly evaporated.
  5. 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.
  6. Halfway through adding the broth, incorporate the rehydrated Porcini mushrooms and a bit of the reserved soaking liquid, being careful to avoid any grit.
  7. Continue adding the broth until the rice is cooked al dente and has a creamy consistency.
  8. Stir in the Pecorino Romano cheese, fresh thyme leaves, salt, and freshly ground black pepper. Mix until the cheese is melted and well-integrated.
  9. 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:

  1. 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.
  2. Extra-virgin olive oil: A heart-healthy source of fats known for its nutritional benefits.
  3. Kale: High in vitamins A, K, and C, as well as being a good source of calcium and iron.
  4. Red bell pepper: Rich in vitamin C, potassium, and antioxidants.
  5. Broccoli: Contains vitamins K and C, a good source of folate (folic acid) and also provides potassium, fiber.
  6. Garlic and onion: Known for their antioxidant properties and potential health benefits.
  7. Lemon zest: Adds flavor and is packed with vitamin C.
  8. Vegetable broth: To cook quinoa and to keep the dish vegetarian.
  9. Chia seeds: For added protein, fiber, and omega-3s.
  10. Salt and pepper: For seasoning and balance.

Instructions:

  1. Begin by rinsing the quinoa under cold water to remove its natural coating (saponin) that can make it taste bitter.
  2. In a large pan, heat the olive oil over medium heat. Add finely chopped onion and minced garlic, sautéing until translucent.
  3. Add the quinoa to the pan, stirring it for a couple of minutes.
  4. Gradually add the vegetable broth, letting the quinoa absorb it, similar to the method used in making risotto.
  5. Halfway through, add chopped kale, diced red bell pepper, and broccoli florets. This ensures the vegetables maintain their crunch and nutritional value.
  6. Continue adding broth until the quinoa is fully cooked and has a creamy consistency.
  7. Finish by stirring in the lemon zest and chia seeds. Season with salt and pepper to taste.
  8. 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.