Slugify a string with comprehensive Unicode transliteration and extensive customization options
94
{
"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--slugifydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10