blob: 15bbbb38802380b9908ad76c4f54ea5b5f14e2d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
namespace MediaWiki\Extension\Translate\Utilities\StringComparators;
/**
* An interface to be implemented by comparators that will compare percentage
* of similarity between strings.
*/
interface StringComparator {
/**
* Compares the two messages and returns a similarity percentage
*
* @param string $a
* @param string $b
* @return float 0-1 with 1 being an exact match
*/
public function getSimilarity( $a, $b );
}
|