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%
{
"context": "This criteria evaluates how well the engineer utilizes the titlecase package to implement title case conversion functionality. It focuses on proper use of the titlecase() function and its parameters to handle small words, first/last word capitalization, and punctuation-aware formatting.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import titlecase",
"description": "Imports the titlecase function from the titlecase package (e.g., 'from titlecase import titlecase')",
"max_score": 10
},
{
"name": "Use titlecase() function",
"description": "Uses the titlecase() function as the primary mechanism for converting text to title case",
"max_score": 30
},
{
"name": "Basic conversion works",
"description": "The implementation correctly converts basic strings like 'this is a test' to 'This Is a Test', demonstrating that small words (is, a) are kept lowercase in the middle",
"max_score": 15
},
{
"name": "First/last capitalization",
"description": "The implementation correctly capitalizes first and last words even when they are small words (e.g., 'a tale of two cities' becomes 'A Tale of Two Cities', 'nothing to be afraid of' becomes 'Nothing to Be Afraid Of')",
"max_score": 20
},
{
"name": "Punctuation handling",
"description": "The implementation correctly capitalizes words after punctuation marks like colons (e.g., 'starting with a small word: a trick' becomes 'Starting With a Small Word: A Trick')",
"max_score": 15
},
{
"name": "Parameter usage",
"description": "Uses the titlecase() function with appropriate parameters if needed, or demonstrates understanding that the default behavior handles the requirements (the small_first_last parameter defaults to True which is the desired behavior)",
"max_score": 10
}
]
}