What does Three-Way Brand Collision Pre-Screening conclude, in numbers, about “East and West in the Sources: the Preface to the Qieyun and Russell's Patent of 1918”?
Answer: Chapter 7 examines Lu Fayan's preface to the Qieyun and Russell's 1918 patent that preceded Soundex, with a program that reads ancient fanqie spellings in modern sounds.
Scope of the numbers: In an illustrative model, with the sound channel at eight tenths, the AUC of the sound code is 0.851 against 0.817 for letter edit distance. Parameters are illustrative; all calculations are generated by the book's programs; the book is general analysis, not individualised legal advice, and judgements of trademark similarity rest with official searches in each jurisdiction and professional agents.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 1918
| US patent 1261167, R. C. Russell, filed 1917-10-25, issued 1918-04-02 | ||||
| name | patent | this reading | match | American Soundex |
| Hopley | 125 | H125 | yes | H140 |
| Highfield | 1254 | H13254 | no | H214 |
| Hayes | 1 | H1 | yes | H200 |
| Haes | 1 | H1 | yes | H200 |
| Ay | 1 | A1 | yes | A000 |
| Russell reading | names 2764 | codes | 592 | largest bucket 36 |
| American Soundex | names 2764 | codes | 503 | largest bucket 36 |
Show the full program
# Chapter 7. p72: a simplified reading of Russell's 1918 index.
# Model (illustrative reconstruction from the patent text, whose
# printed copy is partly illegible): the first letter selects the
# division and is not coded; eight sound groups follow: 1 vowels
# a e i o u y, 2 b f p v, 3 c g j k q s x z, 4 d t, 5 l, 6 m, 7 n,
# 8 r; h and w are skipped; group 1 is used only once in a name;
# letters of the same group side by side are recorded once; a final
# sibilant is ignored; no cut to a fixed length. The American Soundex
# of p21 is printed beside it. Patent examples are those of the text.
import random
from collections import Counter
RGROUP = {c: d for d, g in (("1", "aeiouy"), ("2", "bfpv"),
("3", "cgjkqsxz"), ("4", "dt"), ("5", "l"),
("6", "m"), ("7", "n"), ("8", "r"))
for c in g}
ACODE = {c: d for d, g in (("1", "bfpv"), ("2", "cgjkqsxz"), ("3", "dt"),
("4", "l"), ("5", "mn"), ("6", "r")) for c in g}
PATENT = (("Hopley", "125"), ("Highfield", "1254"), ("Hayes", "1"),
("Haes", "1"), ("Ay", "1"))
def russell(name):
s = [c for c in name.lower() if c.isalpha()]
body = s[1:]
if body and body[-1] in "sz":
body = body[:-1]
out, last, vowel_used = [], "", False
for c in body:
g = RGROUP.get(c, "")
if not g or g == last:
continue
last = g
if g == "1":
if vowel_used:
continue
vowel_used = True
out.append(g)
return s[0].upper() + "".join(out)
def soundex(name):
s = name.lower()
last, out = ACODE.get(s[0], ""), []
for c in s[1:]:
d = ACODE.get(c, "")
if d and d != last:
out.append(d)
if c not in "hw":
last = d
return (s[0].upper() + "".join(out) + "000")[:4]
if __name__ == "__main__":
print("US patent 1261167, R. C. Russell, filed 1917-10-25,"
" issued 1918-04-02")
print("name patent this reading match American Soundex")
for name, digits in PATENT:
r = russell(name)
print("{:10s} {:7s} {:13s} {:6s} {}".format(
name, digits, r, "yes" if r[1:] == digits else "no",
soundex(name)))
rng = random.Random(20261113)
names = sorted({"".join(rng.choice("bdfgklmnprstvz") +
rng.choice("aeiou")
for _ in range(rng.choice((2, 3))))
for _ in range(3000)})
for label, fn in (("Russell reading", russell),
("American Soundex", soundex)):
b = Counter(fn(n) for n in names)
print("{:17s} names {} codes {:4d} largest bucket {}".format(
label, len(names), len(b), max(b.values())))Single source and citation
Fan, Y. (2026). Phonetic, Graphic and Semantic Distance between Trademarks: Pre-Screening Brand-Name Collisions from Fanqie Spellings to Sound Codes (Version 1.0.0), Chapter 7: East and West in the Sources: the Preface to the Qieyun and Russell's Patent of 1918. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-317 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026317,
author = {Fan, Yafu},
title = {Phonetic, Graphic and Semantic Distance between Trademarks: Pre-Screening Brand-Name Collisions from Fanqie Spellings to Sound Codes},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Far in Spelling, Near in Sound: Edit Distance, Sound Skeletons and the Channels of Confusion
- Chapter 2 · Soundex: a Century-Old Sound Code, Too Wide and Too Narrow
- Chapter 3 · Initial, Final and Tone: a Distance for Chinese Syllables and Homophones across Languages
- Chapter 4 · Component Distance: a Table of Look-Alike Characters and Unicode Normalisation
- Chapter 5 · Meaning and a Three-Way Score: How a Weighted Mean Dilutes a One-Dimension Collision
- Chapter 6 · ROC Curves and Thresholds: Making the Pre-Screen a Calibrated Classifier
- Chapter 8 · A Pre-Screening Loop for New Brand Names, and a Plan to Refute the Book