An interface to be implemented by comparators that will compare percentage of similarity between strings. More...
Public Member Functions | |
getSimilarity ( $a, $b) | |
Compares the two messages and returns a similarity percentage. | |
An interface to be implemented by comparators that will compare percentage of similarity between strings.
Definition at line 9 of file StringComparator.php.
MediaWiki\Extension\Translate\Utilities\StringComparators\StringComparator::getSimilarity | ( | $a, | |
$b ) |
Compares the two messages and returns a similarity percentage.
string | $a | |
string | $b |
Implemented in MediaWiki\Extension\Translate\Utilities\StringComparators\SimpleStringComparator.