Slugify a string with comprehensive Unicode transliteration and extensive customization options
94
{
"context": "This criteria evaluates how well the engineer uses @sindresorhus/slugify's transliteration control feature to optimize performance for ASCII content while properly handling Unicode content based on requirements.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import slugify function",
"description": "Imports the slugify function from @sindresorhus/slugify package",
"max_score": 10
},
{
"name": "Use separator option",
"description": "Configures slugify with separator option set to '_' (underscore) for filename generation",
"max_score": 15
},
{
"name": "Performance optimization path",
"description": "Uses transliterate: false option when preserveUnicode is true or for ASCII-only content to skip unnecessary transliteration processing",
"max_score": 30
},
{
"name": "Transliteration enabled path",
"description": "Uses transliterate: true (or default) when converting Unicode to ASCII equivalents",
"max_score": 25
},
{
"name": "Conditional logic implementation",
"description": "Implements logic to choose between transliteration modes based on the preserveUnicode option",
"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