Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426180
StringComparator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
442 B
Referenced Files
None
Subscribers
None
StringComparator.php
View Options
<?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
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 12:44 (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e1/51/0f27548ecab39ce2b95af6f25ed4
Default Alt Text
StringComparator.php (442 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment