CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-linkify-it

Links recognition library with FULL unicode support for detecting high-quality link patterns in plain text

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how effectively an engineer uses linkify-it's unicode-aware pattern components and custom schema features to implement a multilingual mention detector. The focus is on leveraging linkify-it's built-in unicode support rather than implementing unicode handling from scratch.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses linkify-it",
      "description": "Creates a LinkifyIt instance to leverage the library's link detection capabilities",
      "max_score": 15
    },
    {
      "name": "Custom schema",
      "description": "Uses the .add() method to define a custom schema for '@' mentions (e.g., linkify.add('@', {...}))",
      "max_score": 20
    },
    {
      "name": "Unicode pattern support",
      "description": "Leverages linkify-it's unicode-aware regex patterns (accessed via self.re properties) rather than writing custom unicode regex from scratch",
      "max_score": 25
    },
    {
      "name": "Validator function",
      "description": "Implements a validate function that receives (text, pos, self) parameters and returns match length or 0",
      "max_score": 15
    },
    {
      "name": "Match extraction",
      "description": "Uses .match() method to extract all mentions from text and processes the returned Match objects",
      "max_score": 15
    },
    {
      "name": "Normalizer function",
      "description": "Implements a normalize function to transform match.url or match.text for proper handle extraction and URL generation",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-linkify-it

tile.json