A package for easily working with US and state metadata
Overall
score
88%
{
"context": "This criteria evaluates the engineer's ability to use the python-us library's phonetic state name matching capability. The focus is on proper usage of the us.states.lookup() function which supports fuzzy matching through metaphone phonetic algorithms.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import us module",
"description": "Code imports the us module or us.states submodule to access state lookup functionality",
"max_score": 10
},
{
"name": "Use lookup() function",
"description": "Code uses the us.states.lookup() function to perform state lookups with the user's query string",
"max_score": 35
},
{
"name": "Phonetic matching enabled",
"description": "Code leverages the built-in phonetic matching capability of lookup() by passing the query directly without preprocessing (does not explicitly disable phonetic matching or force exact matching)",
"max_score": 25
},
{
"name": "Access state attributes",
"description": "Code correctly accesses state object attributes (specifically 'name' and 'abbr' attributes) from the lookup result to extract required information",
"max_score": 20
},
{
"name": "Handle no match",
"description": "Code properly handles cases where lookup() returns None (no match found) and provides appropriate output or error handling",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-usdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10