Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance
Overall
score
79%
A tool that formats product descriptions and marketing copy by converting text to title case while preserving the special capitalization of brand names and product identifiers.
The formatter should convert standard text to title case while maintaining the exact capitalization of brand names like "iPhone", "eBay", and "AT&T".
When input is entirely in uppercase, the formatter should normalize it to title case without preserving brand capitalization (since intent is unclear from all-caps).
The formatter should handle longer text with multiple brand names and standard words.
@generates
def format_text(text: str) -> str:
"""
Converts text to title case while preserving brand name capitalization.
Args:
text: The input text to format
Returns:
The formatted text with proper title casing and brand preservation
"""
passProvides title case conversion with brand name preservation support.
@satisfied-by
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