diff --git a/spec/detect_language_spec.cr b/spec/detect_language_spec.cr index ec0a6fb..bf4c4ef 100644 --- a/spec/detect_language_spec.cr +++ b/spec/detect_language_spec.cr @@ -23,7 +23,7 @@ describe DetectLanguage do configured do results = DetectLanguage.detect("Hello world") results[0].language.should eq("en") - results[0].isReliable.should be_true + results[0].is_reliable?.should be_true results[0].confidence.should be_a(Float64) results = DetectLanguage.detect("Jau saulelė vėl atkopdama budino svietą") diff --git a/src/detect_language/detect_response.cr b/src/detect_language/detect_response.cr index dd10c79..9ca2cc2 100644 --- a/src/detect_language/detect_response.cr +++ b/src/detect_language/detect_response.cr @@ -24,5 +24,9 @@ module DetectLanguage isReliable: Bool, confidence: Float64, }) + + def is_reliable? + isReliable + end end end