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