wilhelm-vocabulary / README.md
QubitPi's picture
Add ToC
ae80ae7 verified
|
raw
history blame
5.18 kB

Wilhelm Vocabulary

GitHub last commit badge GitHub workflow status badge Apache License Badge

The data that serves wilhelmlang.com. They are written in YAML format, because

  1. it is machine-readable so that it can be consumed quickly in data pipelines
  2. it is human-readable and, thus, easy to modify
  3. it supports multi-lines value which is very handy for data of natural languages

YAML Schema

The parenthesized value at the beginning of each definition item played an un-ignorable role: it is the label of the relationship between term and defintion in graph database loaded by Wilhelm SDK. For example, both German words

- term: denn
  definition:
    - (adv.) then, thus
    - (conj.) because

and

 - term: nämlich
   definition:
     - (adj.) same
     - (adv.) namely
     - (adv.) because

can mean "because" acting as different types. This is visualized as follows:

error loading example.png

Visualzing synonyms this way presents a big advantage to human brain who is exceedingly good at memorizing patterns

German

vocabulary:
  - term: string
    definition: list
    plural: string
    declension/conjugation: application-specific table
  • The conjugation is the inflection paradigm for a German verb and declension the inflection for nouns and adjectives. Only one of the two is present for a term.

  • The type of the word can be inferred using the following rule

    • term with a definite article of "der"/"die"/"das" and a field of plural that comes with it signifies a noun

    • Those with conjugation field denotes a verb; its definition also begins with an indefinite form, i.e. "to ..."

    • The rests are explicitly stated in the definition field. For example,

        - term: ob
          definition:
            - (conj.) if
            - (conj.) whether
      

      means "ob" is a conjunction in this case and

        - term: denn
          definition:
            - (adv.) then, thus
            - (conj.) because
      

      tells that "denn" can be adverb or conjunction

  • The declension/conjugation table employees an application-specific YAML that looks like the following:

      - term: ein
        definition: (article) a, an
        declension:
          - ["",         masculine, feminine, neuter, plural]
          - [nominative, ein,       eine,     ein,    N/A   ]
          - [genitive,   eines,     einer,    eines,  N/A   ]
          - [dative,     einem,     einer,    einem,  N/A   ]
          - [accusative, einen,     eine,     ein,    N/A   ]
    

    The declension table is equivalent to

    masculine feminine neuter plural
    nominative ein eine ein N/A
    genitive eines einer eines N/A
    dative einem einer einem N/A
    accusative einen eine ein N/A

    The declension/conjugation tables for all vocabularies are sourced from Wiktionary

Korean

中国人学习韩语有先天优势,加之韩语本身也是一门相当简单的语言, 所以这里将语法和词汇合并在一起; 每一项也只由 term(韩)和 definition(中)组成,

vocabulary:
  - term: string
    definition: list

Classical Hebrew (Coming Soon)

The vocabulary is presented to help read and understand Biblical Hebrew. A complementary audio helps well with the pronunciation.

Ancient Greek

vocabulary:
  - term: string
    definition: list

Latin

vocabulary:
  - term: string
    definition: list

License

The use and distribution terms for wilhelm-vocabulary are covered by the Apache License, Version 2.0.