neutralitywtf / ConceptReplacer

A system that replaces a set terminology with another based on dictionaries
GNU General Public License v3.0
0 stars 2 forks source link

Rearrange the categorization of the dictionary #7

Open mooeypoo opened 7 years ago

mooeypoo commented 7 years ago

The dictionary categorization was born in the hackathon, and it's really bad.

The two dictionaries must match in categories of words, but the categories should really be organized properly.

mdew192837 commented 7 years ago

I'm a bit confused as to what this calls for. This is a super cool project and I'd like to get involved (outside of school, so just whenever I have time) in the early stages. :)

Can you explain a bit more and maybe I can try taking up the issue!

mdew192837 commented 7 years ago

@mooeypoo ^

mooeypoo commented 7 years ago

So, if you look at the dictionaries at the moment, the "category" that each word gets is basically made up; I could instead not use any categorization at all (just number the groupings, making sure that both dictionaries use the same group number for equivalent words) or we can change the categorization of the words completely.

It's not really anything urgent, but the more words inserted, the sillier it gets, because I have to find different categories that are the same between the two dictionaries.

So, for example, in order to switch "superwoman" with "superman" (and vise versa) I had to add both of these to the two dictionaries under the same "category" of word. But what is a category of "superXX"? I just wrote "super":

https://github.com/neutralitywtf/ConceptReplacer/blob/master/dictionaries/men.json

        "super": {
            "singular": [ "superman" ],
            "plural": [ "supermen" ]
        },

https://github.com/neutralitywtf/ConceptReplacer/blob/master/dictionaries/women.json

        "super": {
            "singular": [ "superwoman" ],
            "plural": [ "superwomen" ]
        },

This categorization also affects future dictionaries. For example, if we create a dictionary that is "neutral gender" (he and she become 'they' for example) then all words in men.json and women.json will have to be replaced -- so the new dictionary must also be categorized the same.

This isn't an urgent task, but organizing the dictionaries can make things easier to create new dictionaries (that also use the same categories) and to maintain the words.

My plan for this was to try to think of a good way to categorize the dictionaries that is sustainable for when we want to add more words - and for when we want to add more dictionaries. Also, it would be nice to add a small script that prints out a table of the translation, so we can all see that we have the equivalent words and that the categorizations are correct.

(Something that goes over both *.json files (or any file in dictionaries/ folder and prints a table with [ category | men | women ] -- this is a slightly separate thing than rewriting the dictionaries directly, but I think it can be of help to show us what categorization and direct word-replacements are using (as well as making sure that if we do change the categorization, we are doing so consistently between the dictionaries.

@mdew192837 did this help? Or did I confuse it even more :smile: