or run

npx @tessl/cli init
Log in

Version

Files

docs

index.md
tile.json

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how effectively the engineer uses lodash's truncate function to implement text preview generation. The evaluation focuses specifically on proper usage of the truncate API with its various configuration options.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses lodash truncate",
      "description": "Implementation correctly imports and uses lodash's _.truncate() function (or the modular lodash.truncate) as the core mechanism for text truncation.",
      "max_score": 30
    },
    {
      "name": "Length parameter handling",
      "description": "Correctly passes the length option to _.truncate() to control the maximum length of the truncated string, including proper handling of the default value (30).",
      "max_score": 20
    },
    {
      "name": "Omission parameter handling",
      "description": "Correctly passes the omission option to _.truncate() to customize the ending string appended to truncated text, including proper handling of the default value ('...').",
      "max_score": 20
    },
    {
      "name": "Separator parameter handling",
      "description": "Correctly passes the separator option to _.truncate() to control word boundary truncation, ensuring text is cut at complete words when a separator is provided.",
      "max_score": 20
    },
    {
      "name": "Direct API usage",
      "description": "Uses _.truncate() directly without unnecessary wrapper logic or reimplementation of truncation logic that the library already provides. The function should primarily delegate to lodash rather than implementing custom truncation algorithms.",
      "max_score": 10
    }
  ]
}