Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 1.23 KB

CONTRIBUTING.md

File metadata and controls

15 lines (12 loc) · 1.23 KB

Contributing

If you'd like to add another language, read on!

How does it work?

Language Detector works by looking for characters that are nearly unique to a language's script. For example, if we see ß in some text, the language is likely German because we almost never see this character in other languages.

How to add another language?

  1. Create a folder with the Language's Name in title-case in ./prep/sources
  2. Add in at least five files of text in the new language in .txt format. For an example, see Kurmanci. Newspapers are great sources!
  3. Add the Language and its corresponding code to language_to_code in init.py
  4. Add a test for detecting the new language to ./test/test.py
  5. Make a Pull Request with changes to the master branch (the default)

Questions

Reach out with questions to Daniel J. Dufour at [email protected]