Add 'text' language with samples, and heuristics for .fr.

This commit is contained in:
Lars Brinkhoff
2014-11-27 08:04:48 +01:00
parent 5fd56c75d5
commit de6b2f3307
6 changed files with 40 additions and 0 deletions

View File

@@ -118,6 +118,14 @@ class TestHeuristcs < Test::Unit::TestCase
})
end
def test_fr_by_heuristics
assert_heuristics({
"Frege" => all_fixtures("Frege"),
"Forth" => all_fixtures("Forth"),
"text" => all_fixtures("text")
})
end
def assert_heuristics(hash)
candidates = hash.keys.map { |l| Language[l] }