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

{
  "context": "This criteria evaluates how effectively the engineer uses the @sindresorhus/slugify package to implement basic string slugification functionality. The focus is on proper usage of the main slugify function with appropriate understanding of its default behavior for Unicode transliteration, special character handling, and camelCase conversion.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses slugify function",
      "description": "The implementation imports and uses the default export 'slugify' function from @sindresorhus/slugify as the primary mechanism for converting titles to slugs.",
      "max_score": 40
    },
    {
      "name": "Leverages default transliteration",
      "description": "The implementation relies on slugify's default transliteration behavior to handle Unicode characters (e.g., 'Déjà' → 'deja') without explicitly configuring the transliterate option or implementing custom transliteration logic.",
      "max_score": 20
    },
    {
      "name": "Leverages built-in replacements",
      "description": "The implementation relies on slugify's default built-in character replacements (e.g., '♥' → 'love', '&' → 'and') without manually implementing symbol-to-text conversions or overriding with customReplacements.",
      "max_score": 20
    },
    {
      "name": "Leverages decamelize behavior",
      "description": "The implementation relies on slugify's default decamelize behavior to automatically separate camelCase/PascalCase words (e.g., 'fooBar' → 'foo-bar') without manually implementing camelCase detection or disabling the decamelize option.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sindresorhus--slugify

tile.json