Resolving Polysemous Place Names: A Technical Approach to Ancient Chinese Toponym "Langya"

    This article examines how a single string can refer to multiple historical entities, using the ancient Chinese place name "Langya" as a case study. It breaks the problem into three layers—spelling variants, ambiguous references, and administrative changes over time—and outlines practical engineering measures: alias normalization with a standard key, immutable entity IDs, time-interval modeling, and a two-stage retrieval strategy that returns candidates instead of silently choosing one. Readers will find concrete data structures and an implementation checklist for building stable, explainable gazetteers and knowledge bases.

    1. What “Langya” Reveals About Polysemy

    “Langya” (láng yá) is also written with the variant characters 琅琊 and 琅玡. In every form, it refers to an ancient place name in southeastern Shandong. Depending on context, it may denote the Langya settlement of the State of Qi in the Spring and Autumn period, Langya County and Langya Commandery established under the Qin dynasty, or the Langya Terrace built by Qin Shi Huang along with its associated stone inscriptions.

    A single string carrying multiple referents is the classic “polysemous naming” problem in information systems: the surface form is identical, but the referents differ. Without explicit disambiguation, search, aggregation, and statistics all produce distorted results.

    From an engineering perspective, the problem decomposes into three layers:

    • Form layer — variant characters and alternative spellings.
    • Reference layer — one name pointing to multiple entities.
    • Time layer — administrative rank of the same entity changing across historical periods.

    Stacked together, these three layers make plain string matching nearly unusable.

    2. Form Layer: Normalizing Spelling Variants

    琅邪, 琅琊, and 琅玡 are homophonic, visually similar variants of one another. The recommended approach is a mapping from an alias table to a standard key, rather than scattering if-else checks throughout business code.

    1. standard key: langya
    2. alias set: {琅邪, 琅琊, 琅玡, langya, lang ye}

    Three implementation points matter here. First, the alias table should record the source and a confidence score for each entry so decisions can be traced back. Second, normalization should happen at data ingestion time, not at query time, so the same computation is not repeated on every search. Third, the original written form must be preserved in its own field, because citations from classical texts need to remain verifiable as written.

    3. Reference Layer: Disambiguating Same-Name Entities

    Disambiguation starts with assigning every entity a stable unique identifier and demoting “name” from a primary key to an attribute.

    1. {
    2. "id": "geo-ancient-qi-langya-yi",
    3. "name": "琅邪",
    4. "type": "Spring and Autumn settlement",
    5. "period": "Spring and Autumn",
    6. "region": "southeastern Shandong"
    7. }

    When a user queries “Langya,” the system should not arbitrarily return a single result. It should return a candidate set annotated with discriminating dimensions: period, administrative rank, and entity type (settlement / county / commandery / terrace / inscription). At the retrieval layer, a two-stage strategy works well: recall candidates first, then rank them. Ranking features include period terms and place terms in the query context, plus stylistic signals such as whether words like “inscription” or “stele” appear.

    4. Time Layer: Versioning Administrative Divisions

    The Qin-era establishment of Langya County within the commandery system shows that one name can shift rank. The data model should therefore include time-interval fields so that an entity is valid within a [start, end) range. This supports historical lookback queries such as “which commandery did a given place belong to in a given year.”

    The pattern follows the general idea of temporal databases: the primary key identifies the entity, the time fields identify the version, and history is never destroyed by overwrite writes.

    5. Actionable Implementation Checklist

    • Build an alias normalization layer that emits a single standard key.
    • Assign immutable IDs to entities; use names only for display and matching.
    • Introduce time intervals to support historical queries on rank and affiliation.
    • Retrieve via candidate recall plus multi-dimensional ranking; never silently pick one.
    • Preserve the original text end to end so citations stay verifiable.
    • Instrument disambiguation hit rates in logging and monitoring, and iterate on the alias table continuously.

    6. Conclusion

    “Langya” is a small case, yet it captures all three difficulties of governing polysemous ancient place names: variant forms, ambiguity, and change over time. Modeling each layer separately, together with unique identifiers and time versioning, yields results that are both stable and explainable in knowledge bases, digital humanities projects, and search systems. For large-scale corpora and indexes, the pipeline can be built on general-purpose object storage, container platforms, and logging and monitoring capabilities, without binding to any vendor’s proprietary interfaces.