function getIntersectingRank($word_2) { return count(array_intersect($this->getLogicalChars(), parseToLogicalCharacters($word_2))); }
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)); } }