CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-python-levenshtein

Python compatibility wrapper for computing string edit distances and similarities using fast Levenshtein algorithms.

88

1.37x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses the Levenshtein package's distance calculation capability to implement a spell checker that finds the closest matching word from a dictionary.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import Levenshtein package",
      "description": "The solution imports the Levenshtein package (e.g., 'import Levenshtein' or 'from Levenshtein import distance')",
      "max_score": 10
    },
    {
      "name": "Use distance function",
      "description": "The solution uses the Levenshtein.distance() function to compute edit distances between the input word and dictionary words",
      "max_score": 40
    },
    {
      "name": "Compare all dictionary words",
      "description": "The solution calls Levenshtein.distance() for each word in the dictionary to compare against the input word",
      "max_score": 20
    },
    {
      "name": "Track minimum distance",
      "description": "The solution correctly tracks the minimum distance found and the corresponding best matching word during iteration",
      "max_score": 15
    },
    {
      "name": "Return correct format",
      "description": "The solution returns a tuple containing both the closest matching word and the distance value as specified in the API",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-python-levenshtein

tile.json