Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rearrange the categorization of the dictionary #7

Open
mooeypoo opened this issue Sep 9, 2017 · 3 comments
Open

Rearrange the categorization of the dictionary #7

mooeypoo opened this issue Sep 9, 2017 · 3 comments

Comments

@mooeypoo
Copy link
Contributor

mooeypoo commented Sep 9, 2017

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
Copy link

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
Copy link

@mooeypoo ^

@mooeypoo
Copy link
Contributor Author

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants