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

{
  "context": "This criteria evaluates how effectively the engineer uses the @sindresorhus/slugify package's multi-character separator capability to generate URL paths with different separator patterns based on article categories.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports slugify function",
      "description": "The code imports the slugify function from the @sindresorhus/slugify package (either default import or named import)",
      "max_score": 10
    },
    {
      "name": "Uses separator option",
      "description": "The code uses the 'separator' option parameter when calling slugify() to specify custom separators",
      "max_score": 25
    },
    {
      "name": "Double underscore separator",
      "description": "The code correctly uses {separator: '__'} for blog category articles",
      "max_score": 15
    },
    {
      "name": "Double dash separator",
      "description": "The code correctly uses {separator: '--'} for docs category articles",
      "max_score": 15
    },
    {
      "name": "Double colon separator",
      "description": "The code correctly uses {separator: '::'} for news category articles",
      "max_score": 15
    },
    {
      "name": "Category-based separator logic",
      "description": "The code implements logic to select the appropriate multi-character separator based on the article category (e.g., using conditionals, mapping, or switch statements)",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sindresorhus--slugify

tile.json