Example #1
0
 function getIntersectingRank($word_2)
 {
     return count(array_intersect($this->getLogicalChars(), parseToLogicalCharacters($word_2)));
 }
Example #2
0
function parseToLogicalCharacters($word)
{
    if (is_array($word)) {
        for ($i = 0; $i < count($word); $i++) {
            $word[$i] = parseToCharacter($word[$i]);
        }
        return $word;
    } else {
        return parseToLogicalCharacters(parseToCodePoints($word));
    }
}