mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Extract strategies for detecting the language
This commit is contained in:
@@ -3,6 +3,10 @@ module Linguist
|
||||
class Heuristics
|
||||
ACTIVE = true
|
||||
|
||||
def self.call(blob, languages)
|
||||
find_by_heuristics(blob.data, langauges)
|
||||
end
|
||||
|
||||
# Public: Given an array of String language names,
|
||||
# apply heuristics against the given data and return an array
|
||||
# of matching languages, or nil.
|
||||
|
||||
Reference in New Issue
Block a user