CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-sindresorhus--slugify

Slugify a string with comprehensive Unicode transliteration and extensive customization options

94

1.34x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses the @sindresorhus/slugify package to leverage its built-in character replacement capabilities. The focus is on correctly utilizing the package's default behavior that automatically converts special characters like '&', '♥', and '🦄' into their text equivalents.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses slugify package",
      "description": "Imports and uses the slugify function from @sindresorhus/slugify package as the primary mechanism for title sanitization",
      "max_score": 40
    },
    {
      "name": "Relies on built-in replacements",
      "description": "Takes advantage of slugify's default built-in character replacements (& → and, ♥ → love, 🦄 → unicorn) without implementing custom replacement logic or using the customReplacements option unnecessarily",
      "max_score": 40
    },
    {
      "name": "Correct test implementation",
      "description": "All four test cases are correctly implemented and pass, validating that '&' becomes 'and', '♥' becomes 'love', and '🦄' becomes 'unicorn' in the output",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sindresorhus--slugify

tile.json