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

{
  "context": "This evaluation assesses how well the engineer uses the titlecase package to handle recursive processing of compound constructions including hyphenated words, slash-separated phrases, and Mac/Mc Scottish/Irish name patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses titlecase function",
      "description": "Imports and calls the titlecase() function from the titlecase package as the primary mechanism for title case conversion",
      "max_score": 25
    },
    {
      "name": "Hyphenated word handling",
      "description": "Correctly relies on titlecase package's built-in recursive processing for hyphenated compounds (e.g., 'end-to-end', 'state-of-the-art') without manually splitting or processing hyphens",
      "max_score": 20
    },
    {
      "name": "Slash-separated phrase handling",
      "description": "Correctly relies on titlecase package's built-in recursive processing for slash-separated phrases (e.g., 'yes/no', 'start/stop/restart') without manually splitting or processing slashes",
      "max_score": 20
    },
    {
      "name": "Mac/Mc name processing",
      "description": "Correctly relies on titlecase package's built-in recursive processing for Scottish/Irish names with Mac/Mc prefixes (e.g., 'mcdonald', 'macintosh', 'mccoy') without custom pattern matching",
      "max_score": 20
    },
    {
      "name": "Combined pattern processing",
      "description": "Correctly handles combined patterns (e.g., 'mcgregor's state-of-the-art', 'yes/no-maybe') by relying on titlecase's recursive architecture that processes nested compound constructions",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-titlecase

tile.json