Exemplo n.º 1
0
 def test_classify68(self):
     cls = classify_desc("Kongo")
     self.assertEqual(cls, "romanization")
Exemplo n.º 2
0
 def test_classify15(self):
     # Compound not in words, both words are
     cls = classify_desc("winter-bringing")
     self.assertEqual(cls, "english")
Exemplo n.º 3
0
 def test_classify17(self):
     # Word in english_words.py but plural not defined
     cls = classify_desc("plurals")
     self.assertEqual(cls, "english")
Exemplo n.º 4
0
 def test_classify8(self):
     cls = classify_desc("Monetaria unknowniensis IV")
     self.assertEqual(cls, "taxonomic")
Exemplo n.º 5
0
 def test_classify12(self):
     cls = classify_desc("Winter Weather")
     self.assertEqual(cls, "english")
Exemplo n.º 6
0
 def test_classify85(self):
     cls = classify_desc('denʹgám')
     self.assertEqual(cls, "romanization")
Exemplo n.º 7
0
 def test_classify88(self):
     cls = classify_desc('proiznosívši')
     self.assertEqual(cls, "romanization")
Exemplo n.º 8
0
 def test_classify73(self):
     # This really tests that disabling unknown starts works in classify_desc
     cls = classify_desc("symbol, for boron")
     self.assertEqual(cls, "tags")
Exemplo n.º 9
0
 def test_classify74(self):
     # This really tests that disabling unknown starts works in classify_desc
     cls = classify_desc("symbol, for boron", no_unknown_starts=True)
     self.assertEqual(cls, "english")
Exemplo n.º 10
0
 def test_classify71(self):
     cls = classify_desc("film waṯāʾiqiyy")
     self.assertEqual(cls, "romanization")
Exemplo n.º 11
0
 def test_classify72(self):
     cls = classify_desc("bārid ad-dam")
     self.assertEqual(cls, "romanization")
Exemplo n.º 12
0
 def test_classify70(self):
     cls = classify_desc("hindu kuś")
     self.assertEqual(cls, "romanization")
Exemplo n.º 13
0
 def test_classify5(self):
     # Defined in taxondata.py
     cls = classify_desc("Eudyptes unknowniensis")
     self.assertEqual(cls, "taxonomic")
Exemplo n.º 14
0
 def test_classify69(self):
     cls = classify_desc("band karnā")
     self.assertEqual(cls, "romanization")
Exemplo n.º 15
0
 def test_classify83(self):
     cls = classify_desc(
         '"She will not be there tomorrow." ―"Oh, too bad, it\'s not important, we\'ll go on without her."'
     )
     self.assertEqual(cls, "english")
Exemplo n.º 16
0
 def test_classify77(self):
     # This really tests that disabling unknown starts works in classify_desc
     cls = classify_desc("11 to 19", no_unknown_starts=True)
     self.assertEqual(cls, "english")
Exemplo n.º 17
0
 def test_classify84(self):
     cls = classify_desc('Hardcore pictures.')
     self.assertEqual(cls, "english")
Exemplo n.º 18
0
 def test_classify78(self):
     cls = classify_desc("The cat goes \"meow\".")
     self.assertEqual(cls, "english")
Exemplo n.º 19
0
 def test_classify86(self):
     cls = classify_desc('dénʹgam')
     self.assertEqual(cls, "romanization")
Exemplo n.º 20
0
 def test_classify79(self):
     cls = classify_desc(
         'merely announcing that the elimination of news programming [on tv channel TQS] will allow it to focus on "the production of quality entertainment and cultural programming"'
     )
     self.assertEqual(cls, "english")
Exemplo n.º 21
0
 def test_classify7(self):
     # Currently, only the first word of a taxonomic name can be capitalized.
     # This should perhaps be reviewed.
     cls = classify_desc("Monetaria Unknowniensis")
     self.assertEqual(cls, "english")
Exemplo n.º 22
0
 def test_classify80(self):
     cls = classify_desc("I was living with him.")
     self.assertEqual(cls, "english")
Exemplo n.º 23
0
 def test_classify11(self):
     cls = classify_desc("winter weather")
     self.assertEqual(cls, "english")
Exemplo n.º 24
0
 def test_classify6(self):
     # Defined in form_description.py as additional genus
     cls = classify_desc("Monetaria unknowniensis")
     self.assertEqual(cls, "taxonomic")
Exemplo n.º 25
0
 def test_classify13a(self):
     cls = classify_desc("winters'")
     self.assertEqual(cls, "english")
Exemplo n.º 26
0
 def test_classify81(self):
     cls = classify_desc("J'habitais avec lui.")
     self.assertEqual(cls, "romanization")
Exemplo n.º 27
0
 def test_classify16(self):
     # Word in english_words.py but not brown corpus
     cls = classify_desc("lily")
     self.assertEqual(cls, "english")
Exemplo n.º 28
0
 def test_classify82(self):
     cls = classify_desc(
         "Police resort to DNA analysis in order to identify criminals.")
     self.assertEqual(cls, "english")
Exemplo n.º 29
0
 def test_classify18(self):
     # Word in brown but -ing not
     cls = classify_desc("atoning")
     self.assertEqual(cls, "english")
Exemplo n.º 30
0
 def test_classify67(self):
     cls = classify_desc("chika tankō")
     self.assertEqual(cls, "romanization")