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's small_first_last parameter to control first and last word capitalization behavior. The focus is on correctly invoking the titlecase function with the appropriate parameter value to achieve the desired formatting outcomes.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses titlecase function",
"description": "Imports and calls the titlecase() function from the titlecase package to perform title case conversion",
"max_score": 30
},
{
"name": "Passes small_first_last parameter",
"description": "Correctly uses the small_first_last parameter when calling titlecase() to control first/last word capitalization",
"max_score": 40
},
{
"name": "Maps parameter correctly",
"description": "Correctly maps the capitalize_first_last input parameter to the small_first_last parameter of titlecase() (passing capitalize_first_last value directly to small_first_last)",
"max_score": 20
},
{
"name": "Returns titlecase result",
"description": "Returns the result from titlecase() function call as the output of format_title()",
"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