aymericbouzy / french-ssn

🇫🇷 A parser / validator for French Social Security Number
8 stars 5 forks source link

bug: wrong country response when parsing SSN #41

Open pdavim opened 7 months ago

pdavim commented 7 months ago

SSN: 195029851007603 Expected country should be PAPPUA/NEWGUINÉ code 510

Actual result { "birth": { "month": { "name": "février", "index": 2 }, "year": 1995, "country": { "unknown": true }, "county": { "unknown": true, "insee": "985", "error": "appears to be incorrect" }, "city": { "insee": "98510" }, "approximateDate": "1995-02-15T00:00:00.000Z" }, "gender": { "name": "male", "title": "M" }, "provisional": false, "approximateAge": 28 }

aymericbouzy commented 6 months ago

First time I see this, I was expecting it to be code 99510

Are you certain that the person with that SSN was born in Papua New Guinea?

aymericbouzy commented 6 months ago

It seems 98510 points to Koungou in Mayotte no?