Skip to content

Instantly share code, notes, and snippets.

@nexaitch
Last active May 31, 2024 07:35
Show Gist options
  • Save nexaitch/de222dd1a946de8e754a8d7b8458e1d0 to your computer and use it in GitHub Desktop.
Save nexaitch/de222dd1a946de8e754a8d7b8458e1d0 to your computer and use it in GitHub Desktop.
nxh's idea for a conlang dictionary plugin

nxh's idea for a conlang dictionary plugin

things marked with two question marks (??) are not required for my usecase, but might be nice, especially if I want this to be a bit more generally usable

schema

  • a dictionary consists of multiple entries
  • an entry consists of:
    • a headword
    • (one or more) definitions for said word
    • also store roots for derived words (such as compounds)
  • a definition consists of a block of text, maybe also some example sentences
    • also may contain:
      • an :english_gloss
      • other forms of #tags (i guess including parts of speech? maybe should consider those separately)
      • [links] to other entries (by headword)
      • these should be inline with the rest of the text rather than separate sections
      • ?? pronunciation

requirements

  • dictionary should be easily editable as a text document
  • dictionary should be sorted / easily sortable by head word
    • ?? custom sorting orders
  • dictionary should be searchable and filterable:
    • by headword (or component of headword)
    • by english gloss (or component thereof)
    • by tag
    • ?? by pronunciation
    • if you select an entry, it should be possible to find all backlinks (and derived words)
  • you should be able to select any word in an example and see its definition
  • you should be able to click on #tags, [links], and :english_glosses to search by those fields
  • ?? some way to handle regular derivations or automatically create derived terms might be nice

format

- headword (roots of headword)
  - meaning, containing :english_glosses and maybe some #tags
    - example | translation

sample entry (text stolen from wiktionary)

- yan2lun4 (yan2 lun4)
  - #n open :discussion on public affairs; :views; :remarks.
    Synonyms [min2yi4] [yi4lun4] [yu2lun4] [qun2qing2] [yu2qing2] (formal)
    - gong1ji1xin4 ~ | offensive **remarks**
    - bei4li2 she4hui4zhu3yi4 de ~ | **views** departing from socialism
  - #v to :talk; to :discuss
(rest of definition omitted)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment