protected static String getAorAnArticle ( String word ) { if ( Arrays . asList ( ' ' , ' ' , ' ' , ' ' , ' ' , ' ' ) . contains ( Character . toLowerCase ( word . charAt ( 0 ) ) ) ) { return "an" ; //$NON-NLS-1$ } return "a" ; //$NON-NLS-1$ }
Replies the an or a article according to the given word .