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-5/

{
  "context": "This criteria evaluates how effectively the engineer uses the titlecase package to handle quoted text within titles, specifically focusing on proper capitalization of small words at the start of quoted phrases.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "titlecase import",
      "description": "Imports the titlecase function from the titlecase package using 'from titlecase import titlecase' or 'import titlecase'",
      "max_score": 10
    },
    {
      "name": "titlecase function call",
      "description": "Calls the titlecase function directly on the input title string to perform title case conversion",
      "max_score": 30
    },
    {
      "name": "Quote handling",
      "description": "Correctly handles quoted phrases by relying on titlecase's built-in quote detection, which automatically capitalizes small words at the start of quoted segments",
      "max_score": 30
    },
    {
      "name": "Single quotes",
      "description": "Tests demonstrate correct handling of single-quoted phrases (e.g., 'by the way...' becomes 'By the Way...')",
      "max_score": 10
    },
    {
      "name": "Double quotes",
      "description": "Tests demonstrate correct handling of double-quoted phrases (e.g., \"nothing to be afraid of?\" becomes \"Nothing to Be Afraid Of?\")",
      "max_score": 10
    },
    {
      "name": "Simple implementation",
      "description": "Implementation is concise and leverages titlecase package capabilities without unnecessarily reimplementing quote parsing or capitalization logic",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-titlecase

tile.json