We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6db74b commit 7c69b13Copy full SHA for 7c69b13
src/LanguageResult.php
@@ -49,6 +49,7 @@ public function isReliable(): bool
49
if (!$this->language || $this->numNgrams < 3 || !$this->scores) {
50
return false;
51
}
52
+ reset($this->scores);
53
// A minimum of a 24% from the average score
54
if ($this->avgScore[$this->language] * 0.24 > ($this->scores[$this->language] / $this->numNgrams)
55
|| 0.01 > abs($this->scores[$this->language] - next($this->scores))) {
0 commit comments