Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance
Overall
score
79%
A Python utility that formats French and Italian names with contractions (d', l', o') according to proper title case rules.
Your task is to implement a function that properly formats names and titles containing French and Italian contractions that begin with d', l', or o' followed by a letter. The formatting should follow these specific rules:
@generates
def format_name(text: str) -> str:
"""
Format text containing French/Italian contractions according to title case rules.
Args:
text: Input text containing names or titles with contractions
Returns:
Properly formatted text with correct capitalization
"""
passProvides title case conversion functionality following style guide rules.
This dependency should be used to handle the title casing logic including proper handling of French/Italian contractions (d', l', o').
@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