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

{
  "context": "This criteria evaluates how well the engineer uses the titlecase package to format blog post titles while preserving domain names and URLs. The focus is on correctly utilizing the package's domain/URL preservation capability through its main titlecase() function.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses titlecase function",
      "description": "The solution imports and uses the titlecase() function from the titlecase package as the primary mechanism for title formatting.",
      "max_score": 40
    },
    {
      "name": "Domain preservation works",
      "description": "Domain names and URLs within titles are preserved exactly as they appear in the input, demonstrating that the titlecase package's automatic domain detection is functioning correctly.",
      "max_score": 30
    },
    {
      "name": "Title case rules",
      "description": "Regular words follow proper title case rules (first/last words capitalized, small words lowercase in middle positions), showing correct usage of titlecase package behavior.",
      "max_score": 20
    },
    {
      "name": "Handles multiple patterns",
      "description": "The solution correctly processes all types of web addresses specified (simple domains, subdomains, multi-dot domains, and full URLs with protocols) without additional custom logic.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-titlecase

tile.json