CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-titlecase

Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance

Overall
score

79%

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-titlecase

tile.json