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

{
  "context": "This criteria evaluates how well the engineer uses the titlecase package to properly format French and Italian contractions (d', l', o'). The focus is on correctly utilizing the titlecase function which has built-in support for this specific formatting pattern.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports titlecase function",
      "description": "The solution imports the titlecase function from the titlecase package (e.g., 'from titlecase import titlecase' or 'import titlecase').",
      "max_score": 20
    },
    {
      "name": "Uses titlecase function",
      "description": "The solution calls the titlecase() function to perform the text formatting rather than implementing custom capitalization logic.",
      "max_score": 40
    },
    {
      "name": "Passes input correctly",
      "description": "The solution passes the input text as the first argument to titlecase() function, allowing it to process the contractions automatically.",
      "max_score": 20
    },
    {
      "name": "Returns titlecase output",
      "description": "The solution returns the result from the titlecase() function directly or uses it as the formatted output without manual post-processing of the contractions.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-titlecase

tile.json