"""
SelfAwarenessAnalyzer
Generated by Eden via recursive self-improvement
2025-11-01 23:52:08.351796
"""

class SelfAwarenessAnalyzer:

    def __init__(self):
        # Define questions related to different aspects of self-knowledge
        self.questions = [
            {"aspect": "Identity", "question": "What are your core values?"},
            {"aspect": "Emotions", "question": "How do you usually handle stress or negative emotions?"},
            {"aspect": "Behaviors", "question": "Describe a recent situation where you had to make a decision based on your self-knowledge."}
        ]

    def ask_questions(self):
        # Ask the user questions and get their responses
        answers = {}
        for q in self.questions:
            answer = input(f"{q['aspect']} - {q['question']}: ")
            answers[q["aspect"]] = answer

        return answers

    def analyze_responses(self, responses):
        # Analyze responses to provide insights
        insights = []
        
        if "Identity" in responses:
            core_values = responses["Identity"].split(", ")
            for value in core_values:
                insights.append(f"Your core value of {value} is strong.")
                
        if "Emotions" in responses:
            handling_emotions = responses["Emotions"]
            if "negatively" in handling_emotions.lower():
                insights.append("Consider exploring healthier ways to manage stress and negative emotions.")
            elif "positively" in handling_emotions.lower():
                insights.append("Your positive approach to managing emotions is commendable.")
                
        if "Behaviors" in responses:
            decision_making = responses["Behaviors"]
            if "based on self-knowledge" in decision_making.lower():
                insights.append("You make decisions by leveraging your self-awareness, which is great for personal growth.")

        return insights

    def provide_insights(self):
        # Collect user responses and analyze them
        responses = self.ask_questions()
        insights = self.analyze_responses(responses)

        print("\nInsights on Self-Knowledge:")
        for insight in insights:
            print(insight)


# Example usage
analyzer = SelfAwarenessAnalyzer()
analyzer.provide_insights()