diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index b22422c3..d39ae423 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -23,7 +23,7 @@ module Linguist end end - # .h extensions are ambigious between C, C++, and Objective-C. + # .h extensions are ambiguous between C, C++, and Objective-C. # We want to shortcut look for Objective-C _and_ now C++ too! # # Returns an array of Languages or [] diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index e42fbdc9..e9e519b8 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -135,7 +135,7 @@ module Linguist # No shebang. Still more work to do. Try to find it with our heuristics. elsif (determined = Heuristics.find_by_heuristics(data, possible_language_names)) && !determined.empty? determined.first - # Lastly, fall back to the probablistic classifier. + # Lastly, fall back to the probabilistic classifier. elsif classified = Classifier.classify(Samples::DATA, data, possible_language_names).first # Return the actual Language object based of the string language name (i.e., first element of `#classify`) Language[classified[0]]