Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance
79
Pending
Does it follow best practices?
Impact
79%
0.91xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how effectively the engineer uses the titlecase package to solve the hyphenated phrase formatting problem. The focus is on proper usage of the titlecase library's API and understanding its hyphenated word processing capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses titlecase function",
"description": "The solution imports and uses the titlecase() function from the titlecase package",
"max_score": 30
},
{
"name": "Correct function call",
"description": "The titlecase() function is called with appropriate arguments (text input as first parameter)",
"max_score": 25
},
{
"name": "Handles hyphenated words",
"description": "The solution correctly processes hyphenated phrases (e.g., 'end-to-end' becomes 'End-to-End') by leveraging titlecase's built-in hyphenated word processing",
"max_score": 25
},
{
"name": "Small words handled",
"description": "Small words (prepositions, articles, conjunctions) within hyphenated phrases are kept lowercase in middle positions, demonstrating understanding of titlecase's small word handling",
"max_score": 15
},
{
"name": "No manual splitting",
"description": "The solution avoids manually splitting on hyphens and instead relies on titlecase's automatic hyphenated word processing capability",
"max_score": 5
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10