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

[API] Create a mapping from wikipedia language strings to wiki language codes in WikiConstants #53

Open
daxenberger opened this issue Jul 31, 2015 · 1 comment

Comments

@daxenberger
Copy link
Member

Originally reported on Google Code with ID 59

This issue is related to the following DKPro-ASL issue:

http://code.google.com/p/dkpro-core-asl/issues/detail?id=23

We should augment the languge enum values in WikiConstants with the corresponding wiki
codes, e.g. english - en, french - fr, ...

The following list may be parsed to achieve this:
http://meta.wikimedia.org/wiki/List_of_Wikipedias

Reported by oliver.ferschke on 2011-09-14 09:20:15

@daxenberger
Copy link
Member Author

I think either the data should be parsed from that wikipedia page and be stored in the
database as a table - or - we use the enum. If we have both, the database and the enum
might become out-of-sync.

I'd opt for not having the Language enum anymore. Methods accepting or returning that
enum should accept/return a string instead. Getting a list for all languages should
be possible from the database. Another way to get the a language string might be through
the constants in the Java class Locale. http://download.oracle.com/javase/6/docs/api/java/util/Locale.html#ENGLISH.

Locale.ENGLISH.getLanguage()


Reported by richard.eckart on 2011-09-14 09:57:24

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

No branches or pull requests

2 participants