International scientific journal
Published in Hong Kong 中文
TCM Discovery Search
Current issue/Volume 1 · Number 1
Data descriptor

A Linked Dataset of Traditional Chinese Medicine Formula Aliases, Compositions, and Edition Provenance: Construction and Independent Validation

Dongfei LinTCM Discovery · pp. 38–48
On this page
Abstract Materials and methods Extraction and validation Results Recovery of independently reported formula aliases Composition as a discriminator of source work Where source resolution succeeds and fails Fascicle agreement and edition evidence External check against a university formula database Discussion Data availability and references

Abstract

Background. Historical formula dictionaries attach names to particular recipes and textual sources. A single normalized formula name can therefore retrieve several incompatible ingredient lists. This study constructed a record-level dataset and tested which parts of a formula citation could be independently recovered.

Methods. One Chinese formula dictionary supplied construction records. A second, held-out dictionary provided explicit alias assertions, ingredient lists and reference titles. Within exact-name or documented-alias candidate sets, ingredient overlap ranked construction records without access to the target book. Six consecutive records from a university database provided an external check.

Results. The dataset contains 84,578 construction records, 39,818 headwords, 638,377 record–ingredient links and 9,741 cited alias assertions. Of 758 directed alias pairs explicitly named in the held-out dictionary, 478 (63.1%) were also present in the construction index. Across 8,023 evaluable queries, ingredient ranking recovered the literal first book title with 50.0% expected agreement, close to the 51.7% ceiling imposed by candidate coverage. In 2,191 queries with multiple candidate books and the target present, agreement reached 93.5%, versus 29.0% for the most frequent candidate book. Of 84,578 records, 107 carried a parenthetical edition-like qualifier. No held-out heading supplied such a qualifier.

Conclusions. Composition can distinguish homonymous recipes when the relevant textual source is represented. Reliable reuse requires separate links for the headword’s source, the alias citation and the particular edition. Book and volume agreement alone cannot establish the identity of a printed exemplar.

Keywords traditional Chinese medicine · historical formularies · aliases · record linkage · ingredient composition · textual provenance

Introduction

A search for Ren Shen San (人参散) returns 261 entries in the construction dictionary. Assigning that name a single ingredient set requires a choice among distinct entries. TCMID and ETCM have made formula–ingredient relationships searchable across large collections.1,2 Historical comparison poses a further question. When two compilers report the same name, what evidence connects their recipes to the same passage or printing?

Materials and methods

Source selection and unit of observation

The unit was a dictionary entry, called a witness here to identify one digital record of a formula. A record could cite a work, quote an earlier work, and attach different citations to alternative names. The design retained those relations separately. This follows the distinction between lexical labels and equivalence relations in SKOS and the principle of attaching provenance to a specific entity or assertion.3,4

Two complete worksheets were selected for complementary fields. Fangji Da Cidian supplied a headword, composition, source, notes and extracted ingredient entities.5 Zhongguo Fangji Jinghua Cidian supplied independently readable headings, ingredient entities and editorial statements naming alternative formulas.6 Every post-header row entered its assigned corpus. The construction index used only the first dictionary. The two digital files belong to one local collection and may share transcription practices or upstream texts. No patient records entered the study.

Figure 1. One construction witness and three kinds of evidence

Figure 1. One construction witness and three kinds of evidence. D 33335 records Yi Fu Yin in Yi Shuo, juan 3, citing Lei Bian. Its annotation attributes the alternative Er Miao Xiang Liang San to Yi Xue Ru Men, juan 7. The two ingredient labels come from the construction entity field. Arrows trace assertions attached to this record.

Identifiers and representation

D and H designate the construction and held-out worksheets, respectively. Each integer is the original worksheet row, including the header in the numbering. Identifiers remain interpretable against the checksummed input files. A headword or alias can lead to several D records. No transitive expansion was applied. An alias attached to one entry therefore cannot silently connect every record that shares its spelling.

Table 1. Relations in the research dataset. The digital witness is the common join point.

Relation

Unit and evidence retained

Witness → primary citation

One source string per D row, with the first bracketed work and the juan extracted separately.

Witness → alias assertion

Alternative label, cited source and extraction rule. Several citations may support the same label.

Witness → ingredient

One normalized lexical term per D row. Set membership ignores order, repetitions and dose.

Witness → edition qualifier

An edition-like expression retained verbatim and linked to its digital witness.

Extraction and validation

Normalization and citation parsing

Unicode NFKC normalization and whitespace removal produced matching keys. The first title delimited by 《 》 was retained literally. For H, the preceding heading text became the headword. A juan is a textual division, often translated as fascicle. The parser sought 卷 followed by numerals or an upper, middle or lower division after the first title, stopping before a second bracketed title, 引 (“cites”) or 名见 (“name appears in”). Numeric forms were aligned for comparison. A short parenthesis ending in 本 was retained as an edition-like qualifier. A second scan detected ten explicit printing, copying or editorial terms. Both rules flag strings for inspection.

For D, a cited alias required a short Han-script label at a note or list boundary followed by a parenthesized bibliographic reference, or the explicit construction “本方方名…引作” naming a quoted title variant. Narrative cues and self-links were excluded. The stricter H reference pattern took the first quoted label immediately following 本方又名 (“this formula is also named”). This deliberately narrow reference set tests a directional headword–alias claim. The rules and exclusion strings are supplied in the code.

Ranking and denominators

Ingredient entities were split at list delimiters, stripped of whitespace and deduplicated. Explicit missing-value strings were excluded. Processing qualifiers embedded in an entity name were retained. For query set A and construction set B, Jaccard similarity was the number of shared labels divided by the number of distinct labels in their union. Exact term matches contributed equally. No drug ontology, dose conversion or learned parameter entered the score.

Candidate records matched the H headword to a D headword or cited alias. The evaluable cohort required a nonempty H title and ingredient set and at least one candidate with both fields. The target was agreement with the literal first H book. For each query, the ranked score was the proportion of highest-similarity candidates carrying that book. This gives fractional credit for ties. A uniform-record baseline gives every candidate equal weight. A modal-book baseline selects the most frequent candidate title, splitting ties equally across books. A coverage ceiling counts queries with at least one eligible candidate bearing the target book.

Secondary analyses asked whether exact title agreement increased after grouping three common title-abbreviation families, whether the query book appeared in the alias citation, and whether juan agreed within an exact-book subset. Six consecutive public formula records (F00060–F00065) were checked against the completed index.7,8 The book-retrieval endpoint used the held-out title only for evaluation. The external composition check used the cited work to select records before comparing ingredients.

Statistical analysis

Counts describe fixed corpora. Rates are row-weighted unless specified. Paired changes in agreement were resampled in 2,000 bootstrap draws of held-out headword clusters, with all rows for each selected headword retained (seed 20261202). Percentile intervals summarize sensitivity to the mix of headwords in the observed cohort. Shared textual ancestry and compiler selection limit extrapolation to other collections.7

Results

Record coverage and concentration of citations

All 84,578 construction entries contained a headword, source string, composition text and at least one retained ingredient entity. There were 26,429 distinct ingredient strings. The median entry had seven unique terms (interquartile range 4–10). These are lexical counts. A processed material and its base name can contribute separate terms.

Figure 2. Concentration of literal first-title citations

Figure 2. Concentration of literal first-title citations. Panel A ranks six work-title strings using the spellings in the construction file. Panel B accumulates all 1,454 titles in descending frequency. The denominator is 84,559 records with a parseable first title. Abbreviations are retained.

Table 2. Construction coverage, with denominators set by the relevant unit.

Measure

Count / denominator

Share

Headwords occurring more than once

8,787 / 39,818 headwords

22.1%

Records filed under repeated headwords

53,547 / 84,578 records

63.3%

Records with a parsed first work title

84,559 / 84,578 records

99.98%

Records with a parsed first-work juan

75,440 / 84,578 records

89.2%

Records with a cited alias assertion

7,166 / 84,578 records

8.5%

Records with an edition-like qualifier

107 / 84,578 records

0.13%

The three most frequent title strings accounted for 26,054 entries (30.8% of parseable citations). A further distinction matters within an individual citation. The literal sequence 引《, marking a quoted work, occurred in 7,987 records. Treating every bracketed title in such a citation as an independent early attestation would count a report of a quotation as direct evidence from the quoted work.

Name ambiguity was concentrated: 31,031 headwords occurred once, while Ren Shen San, Xi Jiao San and Dang Gui San occurred 261, 214 and 205 times, respectively. This distribution makes aggregate retrieval performance sensitive to whether a study weights names, witnesses or queries.

Recovery of independently reported formula aliases

The construction rules produced 9,741 assertions on 7,166 records, including 8,691 citation-in-parentheses assertions and 1,050 explicit quoted-title variants. They connected 7,396 alternative spellings to headwords through 9,116 distinct directed lexical pairs. The difference between assertion and pair counts reflects reuse of a pair across witnesses or citations.

Figure 3. Outcomes for all 758 held-out rows with an explicit, non-self first quoted alias

Figure 3. Outcomes for all 758 held-out rows with an explicit, non-self first quoted alias. Band widths are proportional to row counts. “Other work*” includes a missing H work title. It denotes a recovered name pair without a matching literal primary title. “Headword only” identifies a known primary name without the tested directed pair.

Of 758 held-out pairs, the primary headword occurred in D for 686 (90.5%). The exact directed pair was present for 478 (63.1% of all pairs, or 69.7% of the 686 with a known headword). For 231, at least one witness also reproduced the literal H primary book. Two recovered pairs lacked an H title. Among the 476 recovered pairs with a comparable H title, 231 (48.5%) had this stricter corroboration. H enumerates selected aliases and the extraction targets its first quoted label, so these data cannot estimate precision across all D assertions.

An alias can have its own source

Alias expansion increased the number of H entries with any candidate from 7,882 to 8,029, adding 147 queries. Only four of those 147 had the H book among evaluable primary citations. The H book appeared in a D alias citation for 56. Together the two citation roles accounted for 59 queries (40.1%), including one where both roles matched. Reading the citation attached to the queried alias therefore recovered evidence for 55 additional queries.

H 35 illustrates the distinction. It records Yi Ca Guang (一擦光) in Chuan Ya Nei Bian, juan 2. D 58660 files the recipe as Mi Chuan Yi Ca Guang (秘传一擦光) under Yi Xue Zheng Zhuan, juan 6. Its alias annotation names Yi Ca Guang and cites Chuan Ya Nei Bian, juan 2. A query restricted to the primary citation would mark the books discordant despite a direct match to the citation supporting the queried name.

Composition as a discriminator of source work

Of 10,127 held-out entries, 2,098 had no name or alias candidate and six further entries lacked fields required for ranking. Of 8,023 evaluable queries, only 4,151 (51.7%) had an eligible candidate bearing the literal reference title. Across all evaluable queries, ingredient ranking achieved 50.0% expected agreement, compared with 31.6% under uniform selection and 32.4% under modal-book selection. Counting all 10,127 queries and assigning zero to those without an evaluable link gave 39.6% end-to-end agreement.

Figure 4. Agreement with the literal held-out first book title

Figure 4. Agreement with the literal held-out first book title. Each line compares two methods on the same queries. The last three rows partition the covered, multiple-book cohort by the number of distinct eligible books. Percentages average fractional query scores for ties.

Table 3. Paired comparisons against a frequency-based book assignment. Intervals are 95% headword-cluster bootstrap percentile intervals.

Evaluable queries

n

Modal book

Ingredient rank

Gain, pp (95% interval)

All

8,023

32.4%

50.0%

17.6 (16.8–18.4)

Multiple eligible books

4,678

13.6%

43.8%

30.2 (29.0–31.4)

Multiple, target present

2,191

29.0%

93.5%

64.5 (62.9–66.0)

Same subset, best J < 1

1,120

30.4%

89.7%

59.3 (56.7–61.7)

Same subset, best J = 1

1,071

27.6%

97.4%

69.9 (67.9–71.8)

The 2,191 covered, multiple-book queries comprised 1,780 distinct headwords. Only 65 had ties among the highest-scoring records. The gain over uniform selection was 67.3 percentage points (95% interval 66.0–68.5). Removing every query with an exact ingredient-set match still left a 59.3-point advantage over the modal-book baseline. Agreement within this subset answers a conditional question: how well composition separates sources once the relevant book has entered the candidate set.

Where source resolution succeeds and fails

Figure 5. Observed literal-book agreement by ingredient similarity and number of eligible books

Figure 5. Observed literal-book agreement by ingredient similarity and number of eligible books. Each cell gives mean agreement and number of queries. All 8,023 evaluable queries enter once, including those whose target book was absent. The exact-match column compares unordered ingredient strings, with dose and preparation outside the score.

Across all evaluable entries, median maximum Jaccard similarity was 0.82 (interquartile range 0.60–1.00). Similarity has different implications at different stages of retrieval. If only one work is represented, ranking cannot change the book selected. Even an exact ingredient match can fail literal-title evaluation. For example, H 363, Ren Shen San, and its leading construction candidate have identical term sets, but the H title is Sheng Hui Fang and the D title is Sheng Hui.

Abbreviated titles and the attainable agreement

An exploratory comparison grouped three title families. Sheng Hui and Sheng Hui Fang were grouped with Tai Ping Sheng Hui Fang, Ju Fang and He Ji Ju Fang with Tai Ping Hui Min He Ji Ju Fang, and Wai Tai and Wai Tai Mi Yao with Wai Tai Mi Yao Fang. All other title keys and all ingredient rankings were left as originally computed.

The number of evaluable queries with a reference-family candidate rose from 4,151 to 4,898 (51.7% to 61.0%). Ranked agreement rose from 50.0% to 58.8%. The 747 newly covered queries quantify the importance of a small bibliographic vocabulary in this corpus. Grouping these titles can assist discovery, but cannot determine which printing or recension an abbreviated citation denotes.

A practical consequence for curation

A curator reviewing H 363 should see both the original citations and the identical term sets. The immediate decision is whether the abbreviated work titles refer to the same work in these two entries. A link that records that decision can improve subsequent searches while retaining the evidence needed to revisit it. A single combined “match” flag would leave a later reader unable to tell whether the ingredients, work or edition had been checked.

Fascicle agreement and edition evidence

Among 3,493 H queries with an interpretable juan and at least one same-title D candidate with a juan and usable ingredient terms, 3,353 (96.0%) had the reference juan somewhere in the candidate set. Selecting by ingredient overlap within the exact book gave 95.6% expected juan agreement. Sixteen queries tied at the top. This analysis conditions on exact book availability and on both sides supplying a locator. It does not measure locator recovery for the whole collection.

Table 4. Four D citations with an explicit production or editorial term. Row IDs identify the digital record. Transliterations retain the cited short work title.

D row and formula

Cited work and juan

Edition evidence in the citation

13721 · Zai Zao Dan

Wai Ke Da Cheng, 4

善成堂刻本 · Shanchengtang block-printed edition

20436 · Xiong Qiang San

Ben Shi, 10

扫叶山房刊本 · Saoye Shanfang printing

56771 · Xiao Feng Ning Sou San

Song Ya Zun Sheng, 7

锦章书局石印本 · Jinzhang Book Company lithograph

76256 · Lou Bei Yang Rong Tang

Wen Yi Lun, 1

石楷校本 · edition collated by Shi Kai

The broader parenthetical rule found 29 distinct qualifier strings on 107 construction records. The most frequent were Ren Wei Ben (人卫本, 51 records) and Gu Ji Ben (古籍本, 23). Several qualifiers identify a publisher only by abbreviation. One contains unreadable characters. The database preserves the string exactly. Of the 107 records, 102 also had a parsed juan. No held-out heading contained an edition qualifier recognized by the same rule.

One record pair resolves the boundary of the evidence

Both D 56771 and H 6969 name Xiao Feng Ning Sou San (消风宁嗽散), cite Song Ya Zun Sheng, juan 7, and list the same eleven ingredient terms. The D citation also names the Jinzhang lithograph. H 6969 stops at the juan. It provides independent compilation-level corroboration of the name, ingredients, work and fascicle. Only D attributes its record to that lithograph. Assigning the edition to H would turn a missing bibliographic detail into an unsupported statement.

Of the four entries in Table 4, only this pair shared a literal headword and first title across the two dictionaries. An edition-level reference standard would require a catalogue or facsimile identifier, a page or folio locator and verification of the relevant passage. The lack of comparable edition labels made an edition-level agreement rate inestimable.

External check against a university formula database

A contiguous six-record series from the Hong Kong Baptist University Chinese Medicine Formulae Images Database provided a separately maintained reference.8 For each public record, the Chinese headword, first source title and materials named in its composition field were transcribed in simplified characters. Embedded processing terms were preserved when part of the printed ingredient name. Quantities, subsequent preparation instructions and additional formulas were excluded.

Figure 6. Best ingredient-set agreement after requiring the target work in six consecutive external reference records

Figure 6. Best ingredient-set agreement after requiring the target work in six consecutive external reference records. The four values of 1.00 are exact lexical set matches. The two lower values reflect a difference in how processed liquorice is named. This source-conditioned check assesses composition and cannot estimate prospective book-selection accuracy.

Table 5. External traceability. D row is the lowest row number among equally scoring same-book witnesses.

HKBU ID

Candidate rows

Rows in cited book¹

Selected D row

Terms in reference

F00060

15

1

64588

4

F00061

5

1

68923

6

F00062

54

2

31989

4

F00063

5

2

8434

3

F00064

1

1

14668

10

F00065

5

1

26577

7

¹ The cited title was Shang Han Lun for five records and Shang Han Liu Shu for F00064. All six had at least one candidate from the named work.

For Li Zhong Wan (F00060), the university lists zhi gan cao (炙甘草). D 64588 encodes gan cao (甘草) in its ingredient field but preserves the processing instruction in the composition text as 甘草(炙). Three of five distinct labels in the union therefore matched. The raw texts also express the ingredient proportions differently, a distinction a set-based score cannot represent. For Hui Yang Jiu Ji Tang (F00064), nine of eleven matched. Here the D composition itself lists gan cao without the qualifier. The same numerical discrepancy can arise from loss during entity extraction or from a difference already present in the source description.

Five references come from one work, and all six are neighboring records in a teaching collection. Their value lies in the publicly inspectable comparisons. They provide little information about less frequently cited works, alias precision or edition attribution.

Discussion

The greatest constraint on recovering a dictionary source was whether the candidate set contained its title. When the literal reference work was present among several books, ingredients usually identified it. Across all evaluable queries, almost half lacked an eligible row from that work. A result reported only for the covered subset would substantially overstate performance in an unfiltered historical search.

Implications for historical and computational research

For a historian tracing a recipe through compilations, the useful output is a set of record-level claims. Under Yi Ca Guang, the source for the alternative name supplies the precise fascicle missing from a primary-title search. Under Xiao Feng Ning Sou San, the same fascicle and eleven matching terms coexist with edition information on only one side. These examples require two different editorial decisions. The first establishes where a name was used. The second identifies which physical edition can be attributed to a particular record.

For computational analyses, a formula–ingredient matrix needs an explicit counting unit. In this collection, 63.3% of records sit under repeated headwords. Pooling every ingredient under a shared name can create a composite recipe that appears in no witness. Conversely, discarding repeated names gives uncommon and widely transmitted formulas the same representation. A defensible analysis can retain one row per witness, publish a second result weighted by distinct headword, and identify any work or edition consolidation used to compute a third estimate.

Limits of the evidence

The two dictionaries may reproduce the same earlier text or draw on related editorial material. Shared wording and structured entity fields can inflate apparent agreement even when whole composition strings differ. Directional aliases were evaluated only where H gave an explicit first quoted name. Omitted punctuation, title variants and later alternatives reduce coverage. An unconfirmed edge may be valid. Independent double annotation of a stratified sample of accepted and rejected edges would be needed to estimate extraction precision and recall.

Ingredient overlap treats every term equally. Rare orthographic variants, generic material names and decisions about preparation can change the ranking. A score of 1.00 omits dose, proportions and extraction uncertainty. Work-title grouping covered only three families, and edition rules captured selected expressions. The findings describe these digital compilations and their documentary concordance. They support no inference about clinical interchangeability.

Conclusion

The resource connects names to the entries in which they occur, preserving the ingredients and citation attached to each. Ingredients substantially improved retrieval among covered homonyms. Alias-specific citations recovered links missed by primary-title matching. Edition evidence remained sparse even where work, fascicle and ingredient set were independently corroborated. Keeping these evidence levels separately queryable is the principal requirement for reusing the dataset.

Data availability and references

Data and code availability

Supplementary Data 1 contains the SQLite dataset, field definitions, input-file fingerprints, and the scripts for construction and statistical analysis. Source strings and row identifiers permit a reader with the corresponding local compilations to return to the original entries. The complete source workbooks and clinical records are outside the supplement. The six public reference entries can be retrieved by the identifiers in Table 5. The release is local and has no assigned repository accession or DOI. File hashes and scoped identifiers support version tracking and reuse.9

Study materials

The study used bibliographic records and formula descriptions. No patient-level clinical, demographic or outcome data were accessed for analysis. AI assistance was used to develop and execute the analysis scripts, prepare the figures and draft the manuscript. Numerical results are traceable to the accompanying database and code.

References

1. Xue R, Fang Z, Zhang M, Yi Z, Wen C, Shi T. TCMID: traditional Chinese medicine integrative database for herb molecular mechanism analysis. Nucleic Acids Res. 2013;41:D1089–95. doi:10.1093/nar/gks1100.

2. Zhang Y, Li X, Shi Y, Chen T, Xu Z, Wang P, et al. ETCM v2.0: an update with comprehensive resource and rich annotations for traditional Chinese medicine. Acta Pharm Sin B. 2023;13:2559–71. doi:10.1016/j.apsb.2023.03.012.

3. Miles A, Bechhofer S, editors. SKOS Simple Knowledge Organization System Reference. W3C Recommendation. 18 Aug 2009. https://www.w3.org/TR/skos-reference/.

4. Lebo T, Sahoo S, McGuinness D, editors. PROV-O: the PROV Ontology. W3C Recommendation. 30 Apr 2013. https://www.w3.org/TR/prov-o/.

5. Fangji Da Cidian [方剂大辞典; Grand Dictionary of Formulas]. Local digital transcription [dataset in Chinese]. Worksheet Sheet1, file 方剂大辞典_84578.xlsx. Snapshot identified in Supplementary Data 1.

6. Zhongguo Fangji Jinghua Cidian [中国方剂精华辞典; Dictionary of Selected Chinese Formulas]. Local digital transcription [dataset in Chinese]. Worksheet Sheet1, file 中国方剂精华辞典_10127.xlsx. Snapshot identified in Supplementary Data 1.

7. Harron KL, Doidge JC, Knight HE, Gilbert RE, Goldstein H, Cromwell DA, et al. A guide to evaluating linkage quality for the analysis of linked data. Int J Epidemiol. 2017;46:1699–710. doi:10.1093/ije/dyx177.

8. Hong Kong Baptist University, School of Chinese Medicine and University Library. Chinese Medicine Formulae Images Database [Internet]. Hong Kong: Hong Kong Baptist University. Records F00060–F00065 [cited 2 Dec 2026]. https://sys01.lib.hkbu.edu.hk/cmed/cmfid/.

9. Wilkinson MD, Dumontier M, Aalbersberg IJ, Appleton G, Axton M, Baak A, et al. The FAIR Guiding Principles for scientific data management and stewardship. Sci Data. 2016;3:160018. doi:10.1038/sdata.2016.18.