Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance
Overall
score
79%
Build a text processing utility that properly formats hyphenated compound phrases for publication headers and titles. The utility should handle various hyphenated constructions while maintaining grammatical correctness.
The system should process hyphenated phrases according to these rules:
The utility should transform text as follows:
Input: "state-of-the-art technology"
Output: "State-of-the-Art Technology"
Input: "one-on-one meeting"
Output: "One-on-One Meeting"
Input: "mother-in-law's advice"
Output: "Mother-in-Law's Advice"
Input: "end-to-end solution"
Output: "End-to-End Solution"
@generates
Implement a function that processes text containing hyphenated phrases and returns the properly formatted result.
Provides text formatting and title casing functionality following style guide rules.
Install with Tessl CLI
npx tessl i tessl/pypi-titlecasedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10