Changeset 28196


Ignore:
Timestamp:
Apr 15, 2014, 10:22:10 PM (10 years ago)
Author:
rvelices
Message:

bug 3056: quick search - english inflections improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/inflectors/en.php

    r28182 r28196  
    9797    $this->er2ing = array_reverse(array(
    9898      '/ers?$/' => 'ing',
    99       '/((be|riv)ers?)$/' => '\1'
     99      '/(be|draw)ers?$/' => '\0'
    100100    ));
    101101
    102102    $this->ing2er = array_reverse(array(
    103103      '/ing$/' => 'er',
    104       '/(being)$/' => '\1'
     104      '/(th|r|hous)ing$/' => '\0',
     105      '/(be|draw)ing$/' => '\0'
    105106    ));
    106107
     
    139140      if ($count)
    140141      {
    141         $res[] = $rc;
    142         return $rc;
     142        if ($rc !== $word)
     143        {
     144          $res[] = $rc;
     145          return $rc;
     146        }
     147        break;
    143148      }
    144149    }
Note: See TracChangeset for help on using the changeset viewer.