MathHubInfo / Frontend

A new MathHub Narration Frontend written in React.
GNU Affero General Public License v3.0
2 stars 0 forks source link

extend the glossary and dictionary structures to include synonyms #38

Closed kohlhase closed 5 years ago

kohlhase commented 5 years ago

in the glossary and the dictionary (see #37 and mock.json), we see the structure

  "glossary": [
        {
            "id": "bijective?bijective",
            "kwd": {
                "en": "bijective",
                "de": "bijektiv",
                "zhs": "<p>simplified Chinese Keyword</p>",
                "fr": "bijective"
            },
            "def": {

is is not fully general yet. We need to take synsets (sets of synonyms) into account, in this example we should really have

  "glossary": [
        {
            "id": "bijective?bijective",
            "kwd": {
                "en": ["bijective", "one-to-one"],
                "de": ["bijektiv", "eins-zu-eins"],
                "zhs": ["<p>simplified Chinese Keyword</p>"],
                "fr": ["bijective"]
            },
            "def": {

In the glossary this means that for every synonym there should be a glossary entry (with an identical definition) and for the math dictionary we should have more than one result in the translation (but with the same link to details obviously).

And while we are at it, we should just rename the kwd field to lemmata.

kohlhase commented 5 years ago

Proposal for process: @AiraComet extends mock.json and views to (singleton) lists, then I will extend the exampel to be more realistic.

kohlhase commented 5 years ago

Oh, and our discussion just gave that we should have a "synonyms" feature in the glossary, maybe like in the old glossary. -