Beispiel #1
0
 public void TestKnownUnknown()
 {
     Assert.Equal(Language.Unknown, Wordlist.AutoDetectLanguage(new string[] { "gffgfg", "khjkjk", "kjkkj" }));
 }
Beispiel #2
0
 public void TestKnownChineseSimplified()
 {
     Assert.Equal(Language.ChineseSimplified, Wordlist.AutoDetectLanguage(new string[] { "的", "一", "是", "在", "不", "了", "有", "和", "人", "这" }));
 }
Beispiel #3
0
 public void TestKnownChineseTraditional()
 {
     Assert.Equal(Language.ChineseTraditional, Wordlist.AutoDetectLanguage(new string[] { "的", "一", "是", "在", "不", "了", "有", "和", "載" }));
 }
Beispiel #4
0
 public void TestKnownFrench()
 {
     Assert.Equal(Language.French, Wordlist.AutoDetectLanguage(new string[] { "abusif", "antidote" }));
 }
Beispiel #5
0
 public void TestKnownSpanish()
 {
     Assert.Equal(Language.Spanish, Wordlist.AutoDetectLanguage(new string[] { "yoga", "yogur", "zafiro", "zanja", "zapato", "zarza", "zona", "zorro", "zumo", "zurdo" }));
 }
Beispiel #6
0
 public void TestKnownJapenese()
 {
     Assert.Equal(Language.Japanese, Wordlist.AutoDetectLanguage(new string[] { "あいこくしん", "あいさつ", "あいだ", "あおぞら", "あかちゃん", "あきる", "あけがた", "あける", "あこがれる", "あさい", "あさひ", "あしあと", "あじわう", "あずかる", "あずき", "あそぶ", "あたえる", "あたためる", "あたりまえ", "あたる", "あつい", "あつかう", "あっしゅく", "あつまり", "あつめる", "あてな", "あてはまる", "あひる", "あぶら", "あぶる", "あふれる", "あまい", "あまど", "あまやかす", "あまり", "あみもの", "あめりか" }));
 }
Beispiel #7
0
 public void TestKnownEnglish()
 {
     Assert.Equal(Language.English, Wordlist.AutoDetectLanguage(new string[] { "abandon", "abandon", "abandon", "abandon", "abandon", "abandon", "abandon", "abandon", "abandon", "abandon", "abandon", "about" }));
 }
Beispiel #8
0
 public void TestKnownJapenese()
 {
     Assert.Equal(Language.Japanese, Wordlist.AutoDetectLanguage(new string[] { "�?��?��?��??�?�ん", "�?��?��?��?�", "�?��?��?�゙", "�?��?��??゙ら", "�?��?��?�ゃん", "�?��??る", "�?��?��?�゙�?�", "�?��?�る", "�?��?��?�゙れる", "�?��?��?�", "�?��?��?�", "�?��?��?��?�", "�?��?�゙�?�?�", "�?��?�゙�?�る", "�?��?�゙�??", "�?��??�?�゙", "�?��?��?�る", "�?��?��?��?る", "�?��?�り�?��?�", "�?��?�る", "�?��?��?�", "�?��?��?��?�", "�?��?��?�ゅ�??", "�?��?��?�り", "�?��?��?る", "�?��?��?�", "�?��?��?��?�る", "�?��?�る", "�?��?�゙ら", "�?��?�゙る", "�?��?�れる", "�?��?��?�", "�?��?��?�゙", "�?��?�や�?��?�", "�?��?�り", "�?��?�も�?�", "�?��?り�?�" }));
 }