CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-titlecase

tessl install tessl/pypi-titlecase@2.4.0

Python 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%

rubric.jsonevals/scenario-7/

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

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/titlecase@2.4.x
tile.json