Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance
Overall
score
79%
{
"context": "This criteria evaluates how well the engineer uses the titlecase package to preserve mixed-case brand names while converting text to title case. The focus is on understanding and correctly applying titlecase's brand name preservation capability.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses titlecase function",
"description": "Imports and uses the titlecase() function from the titlecase package as the primary mechanism for title case conversion.",
"max_score": 30
},
{
"name": "Brand preservation",
"description": "Correctly relies on titlecase's automatic mixed-case preservation behavior without implementing custom brand name handling logic. The solution should leverage that titlecase() preserves mixed-case words when input is not all-caps.",
"max_score": 40
},
{
"name": "All-caps handling",
"description": "Correctly handles all-caps input by passing it to titlecase(), which normalizes all-caps text and does not preserve brand capitalization. Does not add special logic to detect or handle all-caps scenarios beyond calling titlecase().",
"max_score": 20
},
{
"name": "Test compliance",
"description": "Implementation produces correct outputs for all test cases as specified in the problem, demonstrating proper understanding of titlecase behavior.",
"max_score": 10
}
]
}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