Lexicon.Concept and Lexicon.WordConcept: language-neutral pivots #15
Labels
No labels
area
auth
area
data
area
domain
area
infra
area
stats
area
study
area
tooling
area
ui
duplicate
future
kind
bug
kind
chore
kind
decision
kind
docs
kind
feature
kind
spike
kind
test
prio
blocker
risk
high
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nickkeers/first-thousand-words#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective: Represent meaning independently of language so any source/target pair works
without an N×N matrix of language-pair tables.
Files:
lib/first_thousand_words/lexicon/concept.exlib/first_thousand_words/lexicon/word_concept.exSteps:
Concept:gloss(short English gloss),pos_hint,rank(its order in the canonical1000-word syllabus). Identity on
gloss+pos_hintfor import idempotency.WordConcept:belongs_to :concept,belongs_to :word, plussense_rankandconfidence(:high | :medium | :low) to record how good a link is.(concept_id, word_id).Why this shape: a concept can have several words per language (synonyms) and a word can carry
several concepts (polysemy). Modelled as a join, both are representable; modelled as
Word.translationcolumns, neither is.Verify: build a trivial fixture linking EN
waterand ESaguato concept "water" and readit back through the concept.
Refs: plan §3 (Domain model)