public static function newCommandCorrector()
public static function newCommandCorrector()
Build a new corrector with parameters for correcting commands, like fixing "dfif" into "diff" in "arc diff".
Return
PhutilArgumentSpellingCorrector | Configured corrector. |
public static function newFlagCorrector()
public static function newFlagCorrector()
Build a new corrector with parameters for correcting flags, like fixing "--nolint" into "--no-lint".
Return
PhutilArgumentSpellingCorrector | Configured corrector. |
public function setMode($mode)
public function setMode($mode)
Parameters
$mode |
Return
wild |
public function getMode()
public function getMode()
Return
wild |
public function setEditDistanceMatrix($matrix)
public function setEditDistanceMatrix($matrix)
Parameters
PhutilEditDistanceMatrix | $matrix |
Return
wild |
public function getEditDistanceMatrix()
public function getEditDistanceMatrix()
Return
wild |
public function setMaximumDistance($maximum_distance)
public function setMaximumDistance($maximum_distance)
Parameters
$maximum_distance |
Return
wild |
public function getMaximumDistance()
public function getMaximumDistance()
Return
wild |
public function correctSpelling($input, $options)
public function correctSpelling($input, $options)
Parameters
$input | ||
array | $options |
Return
wild |
private function normalizeString($string)
private function normalizeString($string)
Parameters
$string |
Return
wild |