Translate extension for MediaWiki
Loading...
Searching...
No Matches
StringComparator.php
1
<?php
2
3
namespace
MediaWiki\Extension\Translate\Utilities\StringComparators
;
4
9
interface
StringComparator
{
17
public
function
getSimilarity
( $a, $b );
18
}
MediaWiki\Extension\Translate\Utilities\StringComparators\StringComparator
An interface to be implemented by comparators that will compare percentage of similarity between stri...
Definition
StringComparator.php:9
MediaWiki\Extension\Translate\Utilities\StringComparators\StringComparator\getSimilarity
getSimilarity( $a, $b)
Compares the two messages and returns a similarity percentage.
MediaWiki\Extension\Translate\Utilities\StringComparators
Contains a simple string compare class.
Definition
EditDistanceStringComparator.php:4
src
Utilities
StringComparators
StringComparator.php
Generated by
1.10.0