Slugify a string with comprehensive Unicode transliteration and extensive customization options
94
{
"context": "This evaluation assesses how well the engineer uses the @sindresorhus/slugify package to handle whitespace patterns and special character processing in blog post titles. The focus is on correctly leveraging the package's built-in capabilities rather than implementing manual string processing.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses slugify function",
"description": "The implementation imports and uses the slugify function from @sindresorhus/slugify as the primary mechanism for processing titles, rather than implementing manual string manipulation.",
"max_score": 25
},
{
"name": "Whitespace handling",
"description": "Relies on slugify's built-in whitespace handling (trimming, collapsing multiple spaces, converting tabs and newlines) without implementing additional manual whitespace processing logic.",
"max_score": 20
},
{
"name": "Built-in replacements",
"description": "Leverages slugify's built-in character replacements for special characters like '&' (to 'and') and '♥' (to 'love') without manually implementing these conversions.",
"max_score": 20
},
{
"name": "Separator option",
"description": "Correctly passes the separator option from the sanitizeTitle options to slugify's separator option to support custom separators.",
"max_score": 15
},
{
"name": "Trailing dash preservation",
"description": "Correctly uses slugify's preserveTrailingDash option to handle the preserveTrailingDash parameter in the sanitizeTitle function.",
"max_score": 10
},
{
"name": "Character preservation",
"description": "Correctly passes the preserveCharacters option from sanitizeTitle to slugify's preserveCharacters option to allow specific characters to be preserved.",
"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