# Non-Latin names in the numerology endpoints

> Both numerology systems assign numbers to the 26 Latin letters, so a name has to reach the API in Latin script. The API folds accented and special Latin letters for you and refuses a name in any other script with a 400. This page shows what happens to each kind of name, and how to get the Latin spelling to send.

Source: https://astronode.dev/guides/numerology-non-latin-names · Updated: 2026-12-05

## What the API does with a name

Before any letter is valued, both systems clean the name the same way: Unicode NFKD decomposition, removal of accents, upper-casing, and folding of the Latin letters that do not decompose (Ø to O, Æ to AE, Þ to TH and so on). Spaces, hyphens, apostrophes and digits are ignored. What is left is valued with the Pythagorean or Chaldean table - see [Chaldean vs Pythagorean](https://astronode.dev/guides/chaldean-vs-pythagorean-numerology) for the tables themselves. If any letter of another script remains, the request is refused.

*Same date of birth, `number: "expression"` (Pythagorean) and `whole-name` / `identity-initial-code` (Chaldean)*

| name sent | expression | whole-name | identity-initial-code |
| --- | --- | --- | --- |
| Ramesh Sharma | 7 | 9 | 2 |
| रमेश शर्मा (Devanagari) | `400` | `400` | `400` |
| ரமேஷ் சர்மா (Tamil) | `400` | `400` | `400` |
| محمد علي (Arabic) | `400` | `400` | `400` |
| Иван Петров (Cyrillic) | `400` | `400` | `400` |
| Ramesh शर्मा (mixed) | `400` | `400` | `400` |

A name with letters of another script - Devanagari, Tamil, Arabic, Cyrillic, Greek, Chinese, or a mix with Latin - gets `400 VALIDATION_ERROR` on `/name` (on `/person_a/name` or `/person_b/name` for compatibility), with a message that names the script and asks for the Latin spelling the person uses. The API does not transliterate: numerology values a spelling, and a guessed one would give a confident wrong number.

> **Note:** Until December 2026 these names were not refused: every non-Latin letter was deleted, the endpoints answered `200` with `"value": 0`, reports showed zeros beside correct date-based numbers, and a mixed name like "Ramesh शर्मा" was scored as "Ramesh" alone. If you stored numbers from that time for such names, recompute them from a Latin spelling.

## Accented and special Latin letters

*How Latin letters are folded*

| Input | Becomes | Example |
| --- | --- | --- |
| é, ñ, ü, ş, ễ | E, N, U, S, E | José Núñez, Nguyễn - the accent is removed |
| ß | SS | "Strauß" scores as "Strauss" |
| ı (Turkish dotless i) | I | "Işıl Yılmaz" scores as "Isil Yilmaz" |
| Ø, Æ, Œ, Ł, Đ / Ð, Þ | O, AE, OE, L, D, TH | "Søren" as "Soren", "Æsa" as "AEsa", "Łukasz" as "Lukasz" |
| Full-width Ａ to Ｚ | A to Z | "ＡＳＨＡ ＲＡＯ" scores as "ASHA RAO" |

Folding picks one spelling, and spellings matter. "Łukasz Nowak" and "Lukasz Nowak" both have a Chaldean `identity-initial-code` of 3, and "Søren Kierkegaard" an expression of 8, the same as "Soren" - but "Soeren", the other common way to write Ø, gives 4. Until December 2026 these letters were dropped instead of folded ("Łukasz" scored as "UKASZ", initial code 6; "ＡＳＨＡ ＲＡＯ" scored 0); recompute anything stored from then. If a person writes their name with a substitute spelling, send that one.

## Before you call: check, then ask

- **Expect the 400 for other scripts.** Check names before calling so the person can fix the spelling in your form instead of seeing an error later; the code below uses the same folding as the API.
- **Refuse a name with no letters left** (only digits or punctuation) - name-based numbers need at least one letter.
- **Get the Latin spelling from the person.** Numerology values a spelling, not a sound. "Kamala" has an expression of 3 and "Kamla" 11; "Priya Iyer" 9 and "Priya Ayyar" 4. A transliteration can suggest a spelling, but the person should confirm the one they actually use.

The check below does all three: it folds as the API does, refuses non-Latin names before the call, and for a Devanagari name offers a rough transliteration as a suggestion. Its rule for the inherent vowel is deliberately simple (it writes "Kamala", not "Kamla"), which is exactly why the suggestion goes back to the user rather than straight to the API.

```javascript
// name-preflight.mjs - Node 18+. Make a name safe to send, or refuse it.
const API = process.env.ASTRONODE_API ?? "https://api.astronode.dev";
const headers = { authorization: `Bearer ${process.env.ASTRONODE_API_KEY}`, "content-type": "application/json" };

// Letters NFKD does not decompose, which the API would otherwise drop.
const FOLD = { Ø: "O", ø: "o", Ł: "L", ł: "l", Æ: "AE", æ: "ae", Œ: "OE", œ: "oe", Đ: "D", đ: "d", Þ: "TH", þ: "th" };

export function preflight(raw) {
  const name = raw
    .normalize("NFKD") // é -> e + accent; full-width Ａ -> A
    .replace(/\p{M}/gu, "")
    .replace(/[ØøŁłÆæŒœĐđÞþ]/g, (c) => FOLD[c]);
  const foreign = name.match(/[^\p{Script=Latin}\s'.-]/gu);
  if (foreign) return { ok: false, reason: `not Latin: ${[...new Set(foreign)].join("")}` };
  if (!/[a-z]/i.test(name)) return { ok: false, reason: "no letters" };
  return { ok: true, name };
}

// Minimal Devanagari -> Latin (Hunterian-style, no diacritics). A starting
// point for a suggestion the user confirms - not a substitute for asking.
const C = { क: "k", ख: "kh", ग: "g", घ: "gh", च: "ch", छ: "chh", ज: "j", झ: "jh", ट: "t", ठ: "th", ड: "d", ढ: "dh", ण: "n", त: "t", थ: "th", द: "d", ध: "dh", न: "n", प: "p", फ: "ph", ब: "b", भ: "bh", म: "m", य: "y", र: "r", ल: "l", व: "v", श: "sh", ष: "sh", स: "s", ह: "h" };
const V = { अ: "a", आ: "a", इ: "i", ई: "i", उ: "u", ऊ: "u", ऋ: "ri", ए: "e", ऐ: "ai", ओ: "o", औ: "au" };
const M = { "ा": "a", "ि": "i", "ी": "i", "ु": "u", "ू": "u", "ृ": "ri", "े": "e", "ै": "ai", "ो": "o", "ौ": "au" };
export function devanagariToLatin(text) {
  return text.split(/\s+/).map((word) => {
    let out = "";
    const chars = [...word];
    chars.forEach((ch, i) => {
      const next = chars[i + 1];
      if (C[ch]) {
        out += C[ch];
        // Inherent "a" unless a vowel sign or virama follows; dropped at word end.
        if (!M[next] && next !== "्" && i < chars.length - 1) out += "a";
      } else out += V[ch] ?? M[ch] ?? (ch === "ं" || ch === "ँ" ? "n" : "");
    });
    return out.charAt(0).toUpperCase() + out.slice(1);
  }).join(" ");
}

const expression = async (name) => {
  const body = { name, dob: "1992-03-08", number: "expression" };
  const res = await fetch(`${API}/v1/numerology/pythagorean`, { method: "POST", headers, body: JSON.stringify(body) });
  return (await res.json()).data.result.value;
};

for (const raw of ["प्रिया अय्यर", "Priya Iyer", "Łukasz Nowak", "ＡＳＨＡ ＲＡＯ"]) {
  const check = preflight(raw);
  if (check.ok) {
    console.log(`${raw} -> ${check.name}: expression ${await expression(check.name)}`);
  } else {
    const suggestion = devanagariToLatin(raw);
    console.log(`${raw} refused (${check.reason}); suggest "${suggestion}": expression ${await expression(suggestion)}`);
  }
}
```

```text
$ node name-preflight.mjs
प्रिया अय्यर refused (not Latin: परयअ); suggest "Priya Ayyar": expression 4
Priya Iyer -> Priya Iyer: expression 9
Łukasz Nowak -> Lukasz Nowak: expression 1
ＡＳＨＡ ＲＡＯ -> ASHA RAO: expression 9
```

The transliterated "Priya Ayyar" and the spelling she uses, "Priya Iyer", give different numbers. Store the confirmed Latin spelling alongside the original-script name, and send the Latin one. [`/v1/numerology/pythagorean`](https://astronode.dev/capabilities/numerology/numerology-pythagorean) is on the Free plan, [`/v1/numerology/chaldean`](https://astronode.dev/capabilities/numerology/numerology-chaldean) on Hobby.

## Questions

**Can I send a name in Devanagari or another non-Latin script?**

No - it answers `400 VALIDATION_ERROR` on `/name`, naming the script, because numerology values exist only for the Latin letters A-Z. The API does not transliterate; send the Latin spelling the person uses. (Until December 2026 such names were scored as 0 with a 200.)

**How are accented letters handled in numerology names?**

Accents are removed (é becomes E), ß becomes SS, and the letters that do not decompose are folded: Ø to O, Æ to AE, Œ to OE, Ł to L, Đ and Ð to D, Þ to TH. Full-width letters become ordinary ones. So "Søren" scores as "Soren"; if the person writes "Soeren", send that spelling instead.

## Endpoints

- [`POST /v1/numerology/pythagorean`](https://astronode.dev/capabilities/numerology/numerology-pythagorean) - Pythagorean Numerology API
- [`POST /v1/numerology/chaldean`](https://astronode.dev/capabilities/numerology/numerology-chaldean) - Chaldean Numerology API
- [`POST /v1/numerology/report`](https://astronode.dev/capabilities/numerology/numerology-report) - Full Numerology Report API
- [`POST /v1/numerology/compatibility`](https://astronode.dev/capabilities/numerology/numerology-compatibility) - Numerology Compatibility (Ank Milan) API
