tessl install tessl/pypi-titlecase@2.4.0Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance
Agent Success
Agent success rate when using this tile
79%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.92x
Baseline
Agent success rate without this tile
86%
Build a utility to format article titles and quotes following journalistic title case standards.
You need to create a title formatting system that properly handles titles containing quoted text. The system should capitalize quoted phrases correctly while following standard title case rules.
Your implementation should handle:
Create a Python module with a format_title function that:
'by the way, small word at the start but within quotes.' produces 'By the Way, Small Word at the Start but Within Quotes.' @test"nothing to be afraid of?" produces "Nothing to Be Afraid Of?" @testthe article titled "a new beginning" was published produces The Article Titled "A New Beginning" Was Published @testshe said 'the end of the world' produces She Said 'The End of the World' @test@generates
def format_title(title: str) -> str:
"""
Format a title string following journalistic title case standards.
Handles quoted phrases within titles, ensuring proper capitalization
of small words at the start of quoted segments.
Args:
title: The raw title string to format
Returns:
The formatted title with proper capitalization
"""
passProvides intelligent title case conversion with quote handling support.
@satisfied-by