Commit 4e4b0e4c authored by Martin's avatar Martin

fix up some dupes

parent a40a52ca
<?php
//TODO - rewrite $finalInflectionArray so it's properly handled and I do not need to do explodes by ", " everywhere like a retard.
// 14:20 runtime on unused CPU
// $data = file_get_contents('fly.json');
//$word="abandonere";
......@@ -373,7 +375,9 @@ function processInflectionLine($line, $word, &$finalInflectionArray, $inflection
function addInflection($inflectedWord, $inflectionToAdd, &$finalInflectionArray) {
// Add tests if inflectionToAdd has a ',' or '.' or '"' or ';' or ')' or '(' #TODO
if ($inflectedWord == $inflectionToAdd) {
return;
}
// If the array is fresh we can't loop over it, so just push it in.
if (count($finalInflectionArray) == 0) {
array_push($finalInflectionArray, $inflectedWord.", ".$inflectionToAdd);
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment