public Object apply(Object in){
  if (in instanceof Token) {
    Token w=(Token)in;
    String str=w.toString();
    String outStr=americanize(str,capitalizeTimex);
    if (!outStr.equals(str)) {
      new Token(outStr);
    }
    return w;
  }
 else {
    String str=(String)in;
    return americanize(str,capitalizeTimex);
  }
}

public Object apply ( Object in ) { if ( in instanceof Token ) { Token w = ( Token ) in ; String str = w . toString ( ) ; String outStr = americanize ( str , capitalizeTimex ) ; if ( ! outStr . equals ( str ) ) { new Token ( outStr ) ; } return w ; } else { String str = ( String ) in ; return americanize ( str , capitalizeTimex ) ; } }
americanize the hasword or string coming in .
