Namoly

Resources · For developers

Soundex vs Metaphone: How Sound-Alike Names Are Detected

Three algorithms, seven real name pairs, and why trademark examiners still compare names by ear.

Soundex and Metaphone detect sound-alike names by reducing each word to a short phonetic key, so that names which sound alike get the same key: Soundex keeps the first letter and codes the following consonants as three digits, while Metaphone applies English spelling rules to track pronunciation more closely. Neither measures how similar two names are, which is why software pairs them with edit distance and why trademark examiners still decide sound-alikes by judgement. Run on real disputed pairs, each method misses some.

One honest note. Namoly does not use Soundex or Metaphone, and it does not compare your name with other brands or trademarks. Its memorability check uses one edit-distance test against a built-in word list, described exactly below. Trademarks and social handles are not checked, and nothing here is legal advice.

Test your brand name for free

Free, with a result in seconds. Your first name needs no signup.

The problem phonetic matching solves

Names arrive spelled however the person writing them heard them. A census taker writes what a householder says, a customer types what a podcast host said, a clerk files a surname three different ways. Exact string comparison treats Smith and Smyth as strangers. Phonetic algorithms trade precision for recall: they deliberately throw information away (vowels, doubled letters, silent letters) so that variants collapse into one key and can be found together.

There are two families, and confusing them is the commonest mistake. Phonetic keys (Soundex, Metaphone, Double Metaphone) turn one word into a code; two words either share a code or they do not. Edit distances (Levenshtein and its relatives) compare two spellings and return a number. Keys are fast to index and search; distances give you a threshold to tune. Neither one hears anything.

What is Soundex? The algorithm behind the census indexes

Soundex was developed by Robert C. Russell and Margaret King Odell and patented in 1918 and 1922, long before computers, as a manual filing system. Its best-known use came in the 1930s, when the Works Progress Administration built Soundex card indexes to the 1880, 1900, 1920 and part of the 1910 US censuses so that the Social Security Administration could verify people’s ages. The National Archives still publishes the coding rules for genealogists using those indexes.

  1. Keep the first letterThe first letter is written as it is, never coded. Everything after it becomes digits.
  2. Code the consonants into six groupsB F P V become 1; C G J K Q S X Z become 2; D T become 3; L becomes 4; M N become 5; R becomes 6. A E I O U Y H W are not coded.
  3. Collapse neighbours with the same digitAdjacent letters with the same code count once, and so do same-code letters separated only by H or W (Ashcraft is A261, not A226). A vowel between them keeps both.
  4. Stop at three digitsPad with zeros or cut off after three digits, so every key is one letter and three numbers: Robert and Rupert are both R163.

Its strengths are that it is tiny, stable and built into many SQL databases as SOUNDEX(). Its weaknesses show up immediately on brand names. The first letter is kept as written, so Cresco and Kressco can never match. Vowels are ignored entirely, so very different words share keys. Three digits truncate longer names. And it encodes English spelling habits of a century ago, which is why the genealogists Randy Daitch and Gary Mokotoff devised the Daitch-Mokotoff variant (1985) for Slavic and Yiddish surnames, and why NYSIIS (1970) was designed to keep more of a name’s vowel structure.

Metaphone and Double Metaphone

Lawrence Philips published Metaphone in the December 1990 issue of Computer Language. Instead of fixed digit groups it rewrites the word by English pronunciation rules: ph becomes F, an initial x becomes S, c becomes S before e, i or y and K otherwise, silent initial letters in kn, gn, pn and wr are dropped, and vowels are kept only at the start. The key has no fixed length and starts from the sound, not the letter, so Cresco and Kressco both come out as KRSK.

Philips followed it with Double Metaphone, described in the June 2000 C/C++ Users Journal. It returns two keys, a primary and an alternate, to cope with names whose pronunciation depends on their origin: Smith gives SM0 and XMT, Schmidt gives XMT and SMT, so the two meet on XMT. It tests many more spelling contexts (around a hundred for the letter c alone) and handles spellings from Slavic, Germanic, Celtic, Greek, French, Italian, Spanish and Chinese origins. A commercial Metaphone 3 followed in 2009; the accuracy figures quoted for it come from its author and are not independently reconciled, so treat them as claims.

Levenshtein distance: similarity by spelling

Vladimir Levenshtein introduced his distance in a 1965 Soviet paper on error-correcting codes, translated into English in 1966. It is the smallest number of single-character insertions, deletions and substitutions that turn one string into another. Lyft to lift is one substitution; Seiko to Seycos is three.

Because it returns a number, it is the tool for thresholds: flag anything within one edit, review anything within two. It is excellent at typos, respellings and dropped vowels. It is blind to sound: c and k are as different to it as c and z, so two names that a listener cannot tell apart can sit several edits away, while two that look close can sound nothing alike. That is why practical systems combine it with a phonetic key rather than choosing one.

A worked example: seven name pairs, three methods

Four of these pairs come from decisions cited in the USPTO’s examination manual, where each was found confusingly similar. Two are well-known brand respellings, and one is a pair nobody confuses. Soundex and Levenshtein were computed with code, the Soundex implementation checked against the reference codes published for it. The Metaphone keys were worked by hand from the original 1990 rules; library implementations differ at the edges, so yours may vary slightly.

  • Lyft vs liftSoundex L130 and L130 (match). Metaphone LFT and LFT (match). Levenshtein 1. A deliberate brand respelling of an everyday word: every method sees it.
  • Flickr vs flickerSoundex F426 and F426 (match). Metaphone FLKR and FLKR (match). Levenshtein 1. The dropped vowel changes nothing a phonetic key can see.
  • XCEED vs X-SEEDSoundex X300 and X300 (match). Metaphone SST and SST (match). Levenshtein 1. Refused registration for identical agricultural seed, upheld by the Federal Circuit in In re Viterra (2012).
  • CANA vs CAYNASoundex C500 and C500 (match). Metaphone KN and KN (match). Levenshtein 1. Found likely to cause confusion for soft drinks and juices (TTAB, 1985).
  • CRESCO vs KRESSCOSoundex C620 and K620 (miss, because the first letter is kept as written). Metaphone KRSK and KRSK (match). Levenshtein 2. Found likely to cause confusion for hosiery and leather jackets (TTAB, 1963).
  • SEIKO vs SEYCOSSoundex S200 and S220 (miss). Metaphone SK and SKS (miss). Levenshtein 3. Found likely to cause confusion for watches (TTAB, 1985). No method here flags it at a tight threshold.
  • Nike vs NokiaSoundex N200 and N200 (match). Metaphone NK and NK (match). Levenshtein 3. Nobody confuses a sportswear brand with a telecoms company: a phonetic key collision is not confusion.

The score card: of the four decided pairs, Soundex keys match two, Metaphone matches three, and a one-edit Levenshtein threshold catches two. No method catches Seiko and Seycos, which the Board still found confusing for watches. Meanwhile Soundex and Metaphone both put Nike and Nokia under one key. Phonetic algorithms are a filter that finds candidates for a human to judge, with misses on one side and false alarms on the other, and nothing in that description changes when you add a third algorithm.

Why trademark examiners still compare names by ear

The USPTO’s Trademark Manual of Examining Procedure tells examiners to compare marks in their entireties as to appearance, sound, connotation and commercial impression (TMEP 1207.01(b)). Sound is one factor among those, weighed together with how related the goods and services are.

The manual’s section on sound, 1207.01(b)(iv), contains the sentence that rules out a purely algorithmic approach: there is no “correct” pronunciation of a mark, because it is impossible to predict how the public will pronounce it, so an applicant cannot rely on its preferred pronunciation to avoid a likelihood of confusion. A phonetic key has to commit to one reading of the spelling. An examiner considers every plausible one. In Viterra the applicant argued that XCEED is said “exceed” and X-SEED is said “ex seed”; the refusal was upheld anyway.

What a knock-out search can and cannot tell you is in trademark basics for startup naming. If the risk is customers saying your own name wrongly rather than confusing it with someone else’s, read mispronounced brand names. This is not legal advice.

What Namoly’s phonetics and memorability code actually does

Namoly scores a name on four weighted categories: domain availability (0.30), memorability and distinctiveness (0.25), phonetics and readability (0.25), and cross-language safety (0.20), with bands of 80–100 Strong, 60–79 Good, 40–59 Fair and 0–39 Weak. The analysis is deterministic and uses no AI: the three linguistic checks always return the same scores for the same name, and only the live domain lookup can change. Here is exactly what the sound and spelling parts do, read from the code.

  • One edit-distance check, against its own word listThe memorability check compares the name with a built-in list of about 300 common English words. A name of four or more letters within Levenshtein distance 1 of a list word of similar length is classed as a respelling (Lyft lands next to lift, X-SEED next to seed) and starts from a base of 68. An exact list word starts at 35, a compound of two list words at 60, and a coined, pronounceable name at 78 plus small bonuses.
  • A spelling test for the ear, not a phonetic keyThe phonetics check runs a “radio test”: it subtracts points for spellings a listener cannot recover from sound alone, such as ph (15), gh (12), x (8), soft c, doubled letters, silent-letter pairs like kn and wr, and consonant clusters of three or more. It is a set of hand-weighted English spelling rules, not Soundex or Metaphone.
  • Syllables and typeabilitySyllables come from a small dictionary of tricky words plus a vowel-group heuristic; two or three syllables score best. Typeability penalises length past ten characters, rare letters and digits. The phonetics score blends these, scaled by the radio test, and any name with no a, e, i, o or u is capped at 35, which is why Lyft scores Weak on phonetics even though its respelling scores Good on memorability.
  • A language screen that reads spellingThe cross-language check looks for terms from a blocklist of negative meanings in six languages (English, French, German, Spanish, Italian, Portuguese) inside the name’s spelling. It does not match by sound, so a word that sounds like an unfortunate term but is spelled differently will not be flagged. A clean result reads as no flags in the languages checked.

Two honest consequences. First, the respelling test only knows the built-in list: X-SEED is recognised as close to seed, but XCEED is classed as a coined name, because exceed is not on the list. Second, none of this compares your candidate with anybody else’s brand, so a clean report says nothing about sound-alike trademarks. When the heuristics are on shaky ground (very short or long names, many spelling traps, no vowels) the phonetics card carries a medium-confidence flag saying the rules are tuned for English.

Why certain sounds feel fast, soft or sharp is a separate question, covered in sound symbolism in brand names. Deliberate respellings like Lyft and Flickr have their own trade-offs in misspelled brand names, and the language screen is explained in the cross-language safety checklist.

How to check your own name for sound-alikes

The algorithms are most useful as a cheap first pass before people and lawyers get involved. Five steps, in order, each one narrowing what the next has to look at.

  1. Key your name and your rivals’ namesRun your candidate and the names of products in your category through Soundex, Metaphone and Double Metaphone. In PostgreSQL the fuzzystrmatch extension provides soundex(), metaphone(), dmetaphone() and levenshtein(); most languages have a library. A shared key is a reason to look closer, not a verdict.
  2. Compute edit distance on the spellingsAnything within one or two edits of an existing name in your space deserves a second look, because typed searches and autocomplete will put the two side by side.
  3. Say both names aloud, both waysRead each pair in every plausible pronunciation, including the one you think is wrong. Examiners assume no pronunciation is the correct one, so you should not either.
  4. Ask three people to spell it from hearingIf one of them writes a competitor’s spelling, you have found the collision no algorithm guaranteed to find.
  5. Take sound-alikes to a trademark searchPhonetic keys are a cheap first filter. Whether a sound-alike is a legal problem depends on the goods and services and on the whole commercial impression, which is a lawyer’s question, not an algorithm’s.

The wider battery of tests to run on a shortlist is in how to test a brand name. Naming a library or tool? Registries and forks raise their own questions, covered in how to name an open source project.

Frequently asked questions

What is the difference between Soundex and Metaphone?
Soundex keeps a word’s first letter and codes the following consonants into six digit groups, truncated to three digits, ignoring vowels. Metaphone, published by Lawrence Philips in 1990, applies English spelling rules (ph sounds like f, c before e sounds like s) to produce a variable-length key that tracks pronunciation more closely. Both give a match or no match, not a degree of similarity.
Is Double Metaphone better than Soundex?
For English and names of many origins, usually, because it returns a primary and an alternate code and handles far more spelling contexts: Smith gives SM0 and XMT. It is not a similarity score either, and like Soundex it produces false positives and misses some pairs that people would confuse.
Is Levenshtein distance a phonetic algorithm?
No. Levenshtein distance counts the insertions, deletions and substitutions needed to turn one spelling into another. It catches typos and respellings well (Lyft and lift differ by one edit) and knows nothing about sound, so two names that sound identical but are spelled differently can be far apart.
How does the USPTO decide if two trademarks sound alike?
By judgement, not by algorithm. The examination manual (TMEP 1207.01(b)) compares marks in their entireties for appearance, sound, connotation and commercial impression, and section 1207.01(b)(iv) says there is no correct pronunciation of a mark, because the public’s pronunciation cannot be predicted. This is not legal advice.
Does Namoly use Soundex or Metaphone?
No. Namoly’s memorability check uses Levenshtein distance against a built-in list of about 300 common English words to spot respellings, and its phonetics check uses hand-weighted English spelling rules, syllable counts and typeability. It does not compare your name with other brands or trademarks.

Let the algorithms filter, then listen

Phonetic keys and edit distances find candidates; ears and lawyers decide. Put your own shortlist through Namoly’s four deterministic checks and read the reasons behind each score, including exactly why a name did or did not read as a respelling.

Test your brand name for free

Every score comes with its reasons. It’s free, and your first name needs no signup.