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 convert programming identifiers (camelCase, PascalCase) into URL-friendly slugs, specifically leveraging the package's built-in decamelization capability.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses slugify function",
"description": "The implementation imports and uses the default slugify function from @sindresorhus/slugify package",
"max_score": 30
},
{
"name": "Leverages decamelize option",
"description": "The solution correctly uses the decamelize option (enabled by default) to handle camelCase and PascalCase conversion, rather than implementing custom string parsing logic",
"max_score": 35
},
{
"name": "Correct separator usage",
"description": "The implementation produces slugs with hyphen separators (the default separator behavior), resulting in properly formatted slug output",
"max_score": 20
},
{
"name": "Handles all test cases",
"description": "The solution correctly handles all specified test cases: camelCase identifiers, PascalCase identifiers, mixed case with numbers, and consecutive uppercase letters",
"max_score": 15
}
]
}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