CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-formatjs--intl-localematcher

Intl.LocaleMatcher ponyfill providing comprehensive locale matching algorithms with support for 'lookup' and 'best fit' strategies

94

1.09x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses @formatjs/intl-localematcher package to implement sophisticated locale matching using CLDR-based language distance calculation, specifically focusing on the best fit matching algorithm for linguistically accurate locale selection.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses match() function",
      "description": "Uses the match() function from @formatjs/intl-localematcher as the primary mechanism for locale matching",
      "max_score": 30
    },
    {
      "name": "Best fit algorithm",
      "description": "Configures the algorithm option to 'best fit' (not 'lookup') to leverage CLDR language distance calculations for linguistically accurate matching",
      "max_score": 40
    },
    {
      "name": "Proper parameter usage",
      "description": "Correctly passes requested locale(s), available locales, and default locale to the match() function with appropriate data structures",
      "max_score": 15
    },
    {
      "name": "Handles test cases",
      "description": "Implementation correctly handles all test cases: English variant matching, Chinese variant matching, exact matches, and fallback to default when no close match exists",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-formatjs--intl-localematcher

tile.json