wilhelm-vocabulary / README.md
QubitPi's picture
Enhance README
0fbe154 verified
|
raw
history blame
3.31 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: string
  • 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

Korean

vocabulary:
  - term: string
    definition: list

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.