swishej
Class ContainsVowel

java.lang.Object
  |
  +--swishej.ContainsVowel

class ContainsVowel
extends java.lang.Object
implements StemCond


Constructor Summary
(package private) ContainsVowel()
           
 
Method Summary
 boolean cond(java.lang.String word, java.lang.Integer[] endp)
          Some of the rewrite rules apply only to a root containing a vowel, where a vowel is one of "aeiou" or y with a consonant in front of it.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ContainsVowel

ContainsVowel()
Method Detail

cond

public boolean cond(java.lang.String word,
                    java.lang.Integer[] endp)
Some of the rewrite rules apply only to a root containing a vowel, where a vowel is one of "aeiou" or y with a consonant in front of it. Obviously, under the definition of a vowel, a word contains a vowel iff either its first letter is one of "aeiou", or any of its other letters are "aeiouy". The plan is to test this condition.
Specified by:
cond in interface StemCond
Parameters:
word - word to be tested
endp - dummy int array reference to satisfy interface
Returns:
true if the word parameter contains a vowel, false otherwise


Contact: Christian.Werner@t-online.de