Commits

spirit  committed fdeef76

Add test for Portuguese.

  • Participants
  • Parent commits 1a3d542

Comments (0)

Files changed (2)

File guess_language/__init__.py

     if "Extended Latin" in scripts:
         latin_lang = check(words, EXTENDED_LATIN)
         if latin_lang == "pt":
-            return check(words, PT, False)
+            return check(words, PT)
         else:
             return latin_lang
 
         ("トヨタ自動車、フィリピンの植林活動で第三者認証取得 "
          "トヨタ自動車(株)(以下、トヨタ)は、2007年9月よりフィリピンのルソン"
          "島北部に位置するカガヤン州ペニャブランカ町", "ja"),
+        ("Portugal é um país soberano unitário localizado "
+         "no Sudoeste da Europa.", "pt"),
         ("", UNKNOWN),
     ]