|
@@ -19,7 +19,7 @@ class DFAFilter
|
|
|
$this->loadFile();
|
|
|
}
|
|
|
|
|
|
- private function loadFile($dictPath)
|
|
|
+ private function loadFile()
|
|
|
{
|
|
|
$this->dict = array();
|
|
|
$this->initDict();
|
|
@@ -57,7 +57,7 @@ class DFAFilter
|
|
|
fclose($handle);
|
|
|
}
|
|
|
|
|
|
- public function filter($str, $maxDistance = 5)
|
|
|
+ public function filter($str, $maxDistance = 10)
|
|
|
{
|
|
|
if ($maxDistance < 1) {
|
|
|
$maxDistance = 1;
|