docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "Evaluates how well the solution leverages lodash's string casing and formatting helpers to normalize titles, build slugs, shorten copy, and pad badges for the specified formatter API.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Title casing",
"description": "formatTitle relies on lodash startCase (with trim to drop surrounding whitespace) to turn mixed separators or camelCase input into spaced title-case output.",
"max_score": 25
},
{
"name": "Slugging",
"description": "makeSlug uses lodash kebabCase (and trim for stray delimiters) to emit lowercase hyphen-separated slugs with no leading or trailing hyphens.",
"max_score": 25
},
{
"name": "Truncation",
"description": "shortenCopy applies lodash truncate with the provided length and default ellipsis so the result respects the maxLength boundary.",
"max_score": 20
},
{
"name": "Whitespace cleanup",
"description": "Uses lodash trim before casing, slugging, and length checks to ensure outputs exclude leading and trailing spaces.",
"max_score": 15
},
{
"name": "Padding",
"description": "padBadge centers labels with lodash pad (using the supplied fill string) and leaves labels unchanged when already wide enough.",
"max_score": 15
}
]
}