mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Ensure language is loaded
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
require 'linguist/language'
|
||||
require 'linguist/tokenizer'
|
||||
|
||||
module Linguist
|
||||
@@ -107,6 +108,7 @@ module Linguist
|
||||
language_probability(language_name)
|
||||
end
|
||||
|
||||
puts scores.inspect
|
||||
scores.sort { |a, b| b[1] <=> a[1] }.map { |score| [Language[score[0]], score[1]] }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user