feat: Analyze personal name and suggest similar names in GematriaSystem class

This commit is contained in:
2024-06-04 17:07:17 -04:00
parent 717d89efd3
commit 1427ac6b5c
+39 -4
View File
@@ -37,19 +37,54 @@ class MetaphysicalShowcase:
self.system = system
print(f"Gematria system set to: {self.system.value}")
def analyze_personal_name(self, name: str):
print(f"Analyzing the name '{name}'")
for system in GematriaSystem:
value = calculate_gematria(name, system)
print(
f"The Gematria value of '{name}' in {system.value} system is: {value}"
)
def suggest_similar_names(self, name: str):
original_value = calculate_gematria(name, self.system)
print(
f"Suggesting names with Gematria value {original_value} in {self.system.value} system:"
)
similar_names = find_words(original_value, system=self.system)
print(similar_names)
def generate_inspirational_phrases(self):
print(
f"Generating phrases with Gematria value {self.target_value} in {self.system.value} system:"
)
inspirational_phrases = list(
find_phrases(self.target_value, system=self.system)
)
for phrase in inspirational_phrases:
print(f"- {phrase}")
if __name__ == "__main__":
showcase = MetaphysicalShowcase()
# Demonstrate changing target value and system
showcase.set_target_value(636)
showcase.set_system(GematriaSystem.ENGLISH)
showcase.set_target_value(777)
showcase.set_system(GematriaSystem.HEBREW)
# Demonstrate Gematria calculation for a specific name
showcase.demonstrate_gematria_calculation("Metatron")
# Demonstrate finding matching words
showcase.demonstrate_matching_words()
# showcase.demonstrate_matching_words()
# Demonstrate finding matching phrases
showcase.demonstrate_matching_phrases()
# showcase.demonstrate_matching_phrases()
# Analyze a personal name
showcase.analyze_personal_name("Kenneth")
# Suggest similar names
showcase.suggest_similar_names("Kenneth")
# Generate inspirational phrases
# showcase.generate_inspirational_phrases()