Created
November 21, 2024 16:00
-
-
Save jjanczyszyn/0d3d67e2c7424bed491e1dc9f8b79b50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def create_nourishing_presence(): | |
| # Define the important components | |
| important = { | |
| "desire": "Be present together with no rush, enjoying the moment.", | |
| "emotion": { | |
| "primary": "Relaxed, serene pleasure", | |
| "sustaining": ["Connected", "Grateful"], | |
| }, | |
| "strategies": { | |
| "primary": [ | |
| "Notice the impact of what the other person is saying.", | |
| "Fully feel and experience it.", | |
| "Express the experience somatically, through sound or words." | |
| ], | |
| "secondary": [ | |
| "Put words to imagined feelings on their side.", | |
| "Meet them where they are.", | |
| "Help them feel seen and understood." | |
| ], | |
| }, | |
| "behaviors": ["Voice slows down and goes deeper."], | |
| } | |
| # Define prerequisites | |
| prerequisites = { | |
| "shared_desire": "Both partners need a mutual desire for presence.", | |
| "spaciousness": "Both need to have time and mental space." | |
| } | |
| # Define the test for connection | |
| def test_connection(impact_feedback): | |
| return all([ | |
| impact_feedback.get("deepens_each_back_and_forth", False), | |
| "specific_impact" in impact_feedback.get("details", "") | |
| ]) | |
| # Define the results | |
| results = { | |
| "timelessness": "A sense of timelessness and deep connection.", | |
| "shared_space": "A beautiful space to share.", | |
| "missing_presence": { | |
| "sadness": "Sadness when it's not present.", | |
| "heartbreak": "Heartbreak when the other is blind or disengaged.", | |
| "dead_feeling": "Feels dead without engagement." | |
| } | |
| } | |
| # Simulate the connection-building process | |
| connection_log = [] | |
| def presence_step(input_from_partner): | |
| # Notice and feel the impact | |
| impact = f"Noticed impact of '{input_from_partner}'" | |
| connection_log.append(impact) | |
| # Express somatically | |
| somatic_response = "Expressed somatically through sound or words." | |
| connection_log.append(somatic_response) | |
| # Reflect and meet them where they are | |
| reflection = f"Reflected feelings: '{input_from_partner}'." | |
| connection_log.append(reflection) | |
| return { | |
| "impact": impact, | |
| "somatic_response": somatic_response, | |
| "reflection": reflection | |
| } | |
| # Run a session simulation | |
| print("Starting connection process...") | |
| session_feedback = [] | |
| for input_event in ["share story", "express gratitude", "ask a question"]: | |
| feedback = presence_step(input_event) | |
| session_feedback.append(feedback) | |
| # Evaluate test | |
| print("\nEvaluating connection quality...") | |
| impact_feedback = { | |
| "deepens_each_back_and_forth": len(session_feedback) > 1, | |
| "details": [f"Impact seen in '{f['impact']}'" for f in session_feedback] | |
| } | |
| test_passed = test_connection(impact_feedback) | |
| # Display results | |
| print("\nConnection Results:") | |
| print(results["timelessness"] if test_passed else results["missing_presence"]["dead_feeling"]) | |
| print("\nConnection Log:") | |
| print("\n".join(connection_log)) | |
| # Run the algorithm | |
| create_nourishing_presence() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment