Spaces:
Running
Running
Commit History
-
🔮 Add cold-reading English support to monthly fortune API
thCore Changes: - Add language parameter (zh/en) to MonthlyFortuneRequest - Create apply_cold_reading_english() with Barnum Effect triggers - Add _get_ordinal() helper for proper ordinal formatting (1st, 2nd, 3rd) - 5 score-range templates with psychological triggers - Update endpoint to apply cold-reading when language="en" - Add typing.Any import for proper type hints Features: - Specific dates ("the 3rd", "between 8th and 15th") - "You" language ("you've been", "your instincts") - Emotional triggers ("that sinking feeling", "keeps you up at 3am") - Universal specifics ("the conversation you're avoiding") - Time anchors ("before the 8th", "around mid-month") Testing: - Comprehensive test suite (test_cold_reading.py) - Barnum Effect verification - Score range testing - Backward compatibility verified Documentation: - COLD_READING_EXAMPLES.md (examples and comparison) - COLD_READING_IMPLEMENTATION.md (deployment guide) - IMPLEMENTATION_SUMMARY.md (quick reference) Business Impact: - …1b52ac7