Skip to content

Commit

Permalink
set UKRAINIAN as default language #52
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskopp committed Nov 15, 2023
1 parent 7d87c27 commit 5c6080c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/lang-ident.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def ensure_directory_exists(directory_path):
def main(argv):
def lang_ident(text):
lang = detector.detect_language_of(text)
return lang.name if lang else 'UNKNOWN'
return lang.name if lang else 'UKRAINIAN'
languages = [Language.UKRAINIAN, Language.RUSSIAN]
detector = LanguageDetectorBuilder.from_languages(*languages).build()
indir = ''
Expand Down

0 comments on commit 5c6080c

Please sign in to comment.