VIP 👤
🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links 🔌 API & Routers
Advanced

Recursive Logic Parser

#logic #parsing #rules

Execute a series of conditional text transformations.

Process the input text according to these strictly conditional rules: 1) If a sentence contains a negation, invert the polarity of all adjectives within it. 2) If the text has more than 3 paragraphs, swap the second and second-to-last paragraphs. 3) If any proper noun is repeated more than twice, replace the third instance with a pronoun referencing the noun's role. Apply these rules recursively until no further changes occur, then output the final text.