关于「部件距离:形近字表与 Unicode 归一」,《品牌撞名三维预检》给出的定量结论是什么?

结论:「只在读音上近」的三对最值得命名者注意。清悦与庆月、晴悦与庆月,字形距离都是 1.000,没有一个共同部件,读音距离却只有 0.075。请说与清脱字形距离 0.667,读音距离 0.300。这三对如果只做字形检查,全部会被放行。

数据口径:在一个示意模型中,声音通道占八成时音码的 AUC 为 0.851,高于字母编辑距离的 0.817。 书中参数为示意;全部计算由书中程序生成;本书是非个人化法律建议,商标近似判断以各地官方检索与专业代理意见为准。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.075, 0.300, 0.667, 1.000

pairgraphicsoundcell
N1-N31.0000.075near in sound only
N1-N80.3330.500near in shape only
N2-N31.0000.075near in sound only
N4-N80.6670.300near in sound only
N5-N60.3330.425near in shape only
N7-N80.3330.500near in shape only
all pairs 28; cut 0.35 on both axes
near in both 1shape only 3sound only 3neither 21
查看完整验算程序
# Chapter 4. p42: shape and sound disagree for many name pairs.
# Model: a name is a sequence of character ids from the p41 table.
# Graphic name distance = edit distance with the p41 Jaccard cost as
# substitution; sound name distance = the same with the p31 syllable
# cost; both divided by the longer length. Every pair of eight
# invented two-character names is placed in a 2 x 2 table with a cut
# of 0.35 on each axis. Names, table and cut are illustrative.
import math
from itertools import combinations

CHARS = {
    "qing1_W": ("water", "qing"), "qing2_S": ("sun", "qing"),
    "qing3_Y": ("speech", "qing"), "qing4_G": ("shelter", "big"),
    "yue4_H": ("heart", "dui"), "yue4_M": ("moon",),
    "shuo1_Y": ("speech", "dui"), "tuo1_M": ("moon", "dui"),
    "yang2_W": ("water", "yang"), "xiang2_Y": ("speech", "yang"),
    "xing1_S": ("sun", "sheng"), "ming2_S": ("sun", "moon"),
}
INITIALS = ("zh", "ch", "sh", "b", "p", "m", "f", "d", "t", "n", "l",
            "g", "k", "h", "j", "q", "x", "r", "z", "c", "s", "y", "w")
NEAR_I = {frozenset(p) for p in (("zh", "z"), ("ch", "c"), ("sh", "s"),
                                 ("n", "l"), ("f", "h"))}
NEAR_F = {frozenset(p) for p in (("en", "eng"), ("in", "ing"),
                                 ("an", "ang"))}
NAMES = {
    "N1": ("qing1_W", "yue4_H"), "N2": ("qing2_S", "yue4_H"),
    "N3": ("qing4_G", "yue4_M"), "N4": ("qing3_Y", "shuo1_Y"),
    "N5": ("yang2_W", "xing1_S"), "N6": ("xiang2_Y", "xing1_S"),
    "N7": ("yang2_W", "tuo1_M"), "N8": ("qing1_W", "tuo1_M"),
}
CUT = 0.35


def parse(syl):
    tone, body = syl[-1], syl[:-1]
    for ini in INITIALS:
        if body.startswith(ini) and len(body) > len(ini):
            return ini, body[len(ini):], tone
    return "", body, tone


def part(a, b, near):
    if a == b:
        return 0.0
    return 0.5 if frozenset((a, b)) in near else 1.0


def sdist(a, b):
    ia, fa, ta = parse(a.split("_")[0])
    ib, fb, tb = parse(b.split("_")[0])
    return math.fsum([0.45 * part(ia, ib, NEAR_I),
                      0.40 * part(fa, fb, NEAR_F),
                      0.15 * (0.0 if ta == tb else 1.0)])


def gdist(a, b):
    if a == b:
        return 0.0
    sa, sb = set(CHARS[a]), set(CHARS[b])
    return 1.0 - len(sa & sb) / len(sa | sb)


def seq(a, b, cost):
    prev = [float(j) for j in range(len(b) + 1)]
    for i, x in enumerate(a, 1):
        cur = [float(i)]
        for j, y in enumerate(b, 1):
            cur.append(min(prev[j] + 1.0, cur[j - 1] + 1.0,
                           prev[j - 1] + cost(x, y)))
        prev = cur
    return prev[-1] / max(len(a), len(b))


if __name__ == "__main__":
    cells = {(g, s): 0 for g in (0, 1) for s in (0, 1)}
    print("pair    graphic  sound   cell")
    for a, b in combinations(sorted(NAMES), 2):
        g = seq(NAMES[a], NAMES[b], gdist)
        s = seq(NAMES[a], NAMES[b], sdist)
        key = (int(g <= CUT), int(s <= CUT))
        cells[key] += 1
        if key[0] != key[1]:
            print("{}-{}  {:7.3f} {:6.3f}   {}".format(
                a, b, g, s, "near in shape only" if key[0]
                else "near in sound only"))
    print("all pairs {}; cut {} on both axes".format(
        len(list(combinations(NAMES, 2))), CUT))
    print("near in both {}   shape only {}   sound only {}   neither {}"
          .format(cells[(1, 1)], cells[(1, 0)], cells[(0, 1)],
                  cells[(0, 0)]))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《商标音近形近义近三维距离、从反切到音码的品牌撞名预检母典》第 4 章「部件距离:形近字表与 Unicode 归一」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}

本书其他章节结论