validate_fr_nir
Verify a French social-security number (NIR) by checking its 13-digit body and two-digit key using the mod-97 algorithm. Handles Corsica 2A/2B codes and validates structure only.
Instructions
USE THIS to verify a French social-security number (NIR / numéro de sécurité sociale, INSEE) before relying on it — do not guess the key. Checks the 13-digit body (Corsica 2A/2B handled) and the mod-97 two-digit key. Validates structure only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nir | Yes | The French NIR: 13 digits + 2-digit key (spaces ignored). |