Page MenuHomeWickedGov Phorge

StringComparator.php
No OneTemporary

Size
442 B
Referenced Files
None
Subscribers
None

StringComparator.php

<?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

Mime Type
text/x-php
Expires
Sat, Oct 3, 20:02 (2 d, 23 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
68/be/c6e52758ff3d6ec6267b7165be61
Default Alt Text
StringComparator.php (442 B)

Event Timeline