{"abstract":"Ordinal selection reuses cardinal categories.","category":"Localization message semantics","checks":7,"contract":"For positive integer ranks use one/two/few for final digits 1/2/3 except final-two-digit 11/12/13; use other otherwise.","evaluation_group":"model-9fa9fe0a18182275","failed_approach":"Checking ordinal last digits without teen exceptions breaks eleventh through thirteenth.","family":"z-localization-ordinal-kind","id":"FA-11751","implementations":{"attempt":{"sha256":"d37a7aa1603330afd6499cb50289e4b5e0b207fad3e155b652ab7880f4036a50","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(n):\n    return {1:'one',2:'two',3:'few'}.get(n % 10, 'other')\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('first', solve(100*N+1), 'one')\ncheck('second', solve(100*N+2), 'two')\ncheck('third', solve(100*N+3), 'few')\ncheck('eleventh', solve(100*N+11), 'other')\ncheck('twelfth', solve(100*N+12), 'other')\ncheck('thirteenth', solve(100*N+13), 'other')\ncheck('fourth', solve(4), 'other')\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"50f35b91fe6d9f8e03c73722ebb0befd09f0a1f740555d8e77fa41b4b5d54b4c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(n):\n    return 'one' if n == 1 else 'other'\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('first', solve(100*N+1), 'one')\ncheck('second', solve(100*N+2), 'two')\ncheck('third', solve(100*N+3), 'few')\ncheck('eleventh', solve(100*N+11), 'other')\ncheck('twelfth', solve(100*N+12), 'other')\ncheck('thirteenth', solve(100*N+13), 'other')\ncheck('fourth', solve(4), 'other')\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"6af0420e80d4bf6ff09d380e8db4e94b75a2658dcddaa0ec49271b244493de33","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(n):\n    return 'other' if n % 100 in (11,12,13) else {1:'one',2:'two',3:'few'}.get(n % 10, 'other')\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('first', solve(100*N+1), 'one')\ncheck('second', solve(100*N+2), 'two')\ncheck('third', solve(100*N+3), 'few')\ncheck('eleventh', solve(100*N+11), 'other')\ncheck('twelfth', solve(100*N+12), 'other')\ncheck('thirteenth', solve(100*N+13), 'other')\ncheck('fourth', solve(4), 'other')\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Only the explicitly specified miniature locale/message rules are modeled. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"z-localization-ordinal-kind","generated_at":"2026-09-29T14:38:50.594883+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This offline controlled message model isolates a localization decision; it does not implement a complete message-format or locale standard.","repair":"For positive integer ranks use one/two/few for final digits 1/2/3 except final-two-digit 11/12/13; use other otherwise.","root_cause":"The message formatter treats ordinal ranks as cardinal counts.","sha256":"443e9a58adfa7da0116aae89f0c75920ea80e47f1c52c1878c68bf51619ca6bd","title":"Ordinal selection reuses cardinal categories · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.218,"exit_code":1,"observations":[{"actual":"one","check":"first","expected":"one","passed":true},{"actual":"two","check":"second","expected":"two","passed":true},{"actual":"few","check":"third","expected":"few","passed":true},{"actual":"one","check":"eleventh","expected":"other","passed":false},{"actual":"two","check":"twelfth","expected":"other","passed":false},{"actual":"few","check":"thirteenth","expected":"other","passed":false},{"actual":"other","check":"fourth","expected":"other","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"first\", \"actual\": \"one\", \"expected\": \"one\", \"passed\": true}, {\"check\": \"second\", \"actual\": \"two\", \"expected\": \"two\", \"passed\": true}, {\"check\": \"third\", \"actual\": \"few\", \"expected\": \"few\", \"passed\": true}, {\"check\": \"eleventh\", \"actual\": \"one\", \"expected\": \"other\", \"passed\": false}, {\"check\": \"twelfth\", \"actual\": \"two\", \"expected\": \"other\", \"passed\": false}, {\"check\": \"thirteenth\", \"actual\": \"few\", \"expected\": \"other\", \"passed\": false}, {\"check\": \"fourth\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.722,"exit_code":1,"observations":[{"actual":"other","check":"first","expected":"one","passed":false},{"actual":"other","check":"second","expected":"two","passed":false},{"actual":"other","check":"third","expected":"few","passed":false},{"actual":"other","check":"eleventh","expected":"other","passed":true},{"actual":"other","check":"twelfth","expected":"other","passed":true},{"actual":"other","check":"thirteenth","expected":"other","passed":true},{"actual":"other","check":"fourth","expected":"other","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"first\", \"actual\": \"other\", \"expected\": \"one\", \"passed\": false}, {\"check\": \"second\", \"actual\": \"other\", \"expected\": \"two\", \"passed\": false}, {\"check\": \"third\", \"actual\": \"other\", \"expected\": \"few\", \"passed\": false}, {\"check\": \"eleventh\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}, {\"check\": \"twelfth\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}, {\"check\": \"thirteenth\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}, {\"check\": \"fourth\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":38.01,"exit_code":0,"observations":[{"actual":"one","check":"first","expected":"one","passed":true},{"actual":"two","check":"second","expected":"two","passed":true},{"actual":"few","check":"third","expected":"few","passed":true},{"actual":"other","check":"eleventh","expected":"other","passed":true},{"actual":"other","check":"twelfth","expected":"other","passed":true},{"actual":"other","check":"thirteenth","expected":"other","passed":true},{"actual":"other","check":"fourth","expected":"other","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"first\", \"actual\": \"one\", \"expected\": \"one\", \"passed\": true}, {\"check\": \"second\", \"actual\": \"two\", \"expected\": \"two\", \"passed\": true}, {\"check\": \"third\", \"actual\": \"few\", \"expected\": \"few\", \"passed\": true}, {\"check\": \"eleventh\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}, {\"check\": \"twelfth\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}, {\"check\": \"thirteenth\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}, {\"check\": \"fourth\", \"actual\": \"other\", \"expected\": \"other\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}