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

Evaluation results

100%

35%

Locale Availability Checker

Supported locales filtering and lookup

Criteria
Without context
With context

LookupSupportedLocales usage

25%

100%

Correct parameter order

100%

100%

Return value handling

66%

100%

Package import

100%

100%

Test coverage

100%

100%

100%

User Locale Preference Resolver

Basic locale matching with configurable algorithms

Criteria
Without context
With context

Import match function

100%

100%

Call match function

100%

100%

Pass requested locales

100%

100%

Pass available locales

100%

100%

Configure default locale

100%

100%

Configure algorithm option

100%

100%

Handle empty inputs

100%

100%

100%

Smart Locale Matcher

CLDR-based language distance calculation with 2600+ rules

Criteria
Without context
With context

Uses match() function

100%

100%

Best fit algorithm

100%

100%

Proper parameter usage

100%

100%

Handles test cases

100%

100%

100%

Locale Preference Manager

Lookup vs Best Fit algorithm selection

Criteria
Without context
With context

Import match function

100%

100%

Lookup algorithm usage

100%

100%

Best fit algorithm usage

100%

100%

Algorithm selection logic

100%

100%

Function signature correctness

100%

100%

Return value handling

100%

100%

80%

-10%

Locale Preferences Parser

Unicode extension processing (calendar, numbering, hour cycle)

Criteria
Without context
With context

Locale object creation

60%

80%

Calendar extraction

100%

66%

Numbering system extraction

100%

66%

Hour cycle extraction

100%

66%

Options priority

100%

100%

Null handling

100%

100%

100%

Locale Information Enricher

Locale maximization using CLDR likely subtags

Criteria
Without context
With context

Intl.Locale instantiation

100%

100%

maximize() method usage

100%

100%

Locale string extraction

100%

100%

Single locale processing

100%

100%

Multiple locale processing

100%

100%

Error handling

100%

100%

100%

Regional Content Delivery Service

Region-based matching with CLDR containment data

Criteria
Without context
With context

Imports match function

100%

100%

Uses match function

100%

100%

Best fit algorithm

100%

100%

Correct parameter order

100%

100%

Handles test scenarios

100%

100%

100%

8%

User Locale Preference Resolver

Advanced locale resolution with Unicode extensions

Criteria
Without context
With context

ResolveLocale usage

100%

100%

Extension key processing

100%

100%

Locale data integration

100%

100%

Options override handling

80%

100%

Result structure extraction

66%

100%

Basic locale matching

100%

100%

60%

19%

High-Performance Locale Matcher

Three-tier matching optimization (439x performance improvement)

Criteria
Without context
With context

Uses match function

20%

60%

Handles exact matches

20%

33%

Supports maximization

15%

25%

Position-based preference

100%

100%

Caching strategy

33%

66%

Default locale handling

100%

100%

100%

32%

Locale Fallback Resolver

BestAvailableLocale progressive fallback algorithm

Criteria
Without context
With context

Package Import

53%

100%

Locale Matching Usage

16%

100%

Progressive Fallback

100%

100%

Efficient Lookups

100%

100%

Test Compliance

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-formatjs--intl-localematcher
Evaluated
Agent
Claude Code

Table of Contents