Slugify a string with comprehensive Unicode transliteration and extensive customization options
94
{
"context": "This criteria evaluates how well the engineer uses @sindresorhus/slugify to handle lowercase conversion, transliteration, and case preservation. The focus is on proper usage of the package's lowercase option, transliteration capabilities, and understanding of the default behavior.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Lowercase slug generation",
"description": "Uses slugify() with default settings (lowercase: true) to generate lowercase slugs. The slug field should be created using the slugify function which defaults to lowercase conversion.",
"max_score": 30
},
{
"name": "Transliteration for lowercase",
"description": "Correctly uses slugify's transliteration capability (enabled by default) to convert Unicode characters to ASCII before applying lowercase conversion. The lowercase field should show transliterated and lowercased text.",
"max_score": 25
},
{
"name": "Case preservation option",
"description": "Uses the lowercase: false option in slugify() to preserve original casing when generating uppercase versions. The uppercase field should be created by using slugify with lowercase: false and then applying JavaScript's toUpperCase().",
"max_score": 25
},
{
"name": "Default behavior usage",
"description": "Demonstrates understanding that slugify() defaults to lowercase: true, and uses this default behavior appropriately for the slug field without explicitly setting the option.",
"max_score": 10
},
{
"name": "Transliteration consistency",
"description": "Ensures consistent use of slugify's transliteration across all output fields (lowercase, uppercase, slug), so that all three fields show the same transliterated characters, differing only in case or formatting.",
"max_score": 10
}
]
}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