software/test/performance/src/org/LexGrid/LexBIG/example/MetaMatch.java
/**
	 * Returns an array containing the individual white-space delimited words
	 * contained by the given string, normalizing to lowercase and optionally
	 * removing stop words.
	 * @param s
	 * @param removeStopWords
	 * @return
	 */
Returns an array containing the individual white-space delimited words
contained by the given string, normalizing to lowercase and optionally
removing stop words.
@param s
@param removeStopWords
@return
Returns an array containing the individual white - space delimited words contained by the given string normalizing to lowercase and optionally removing stop words . @param s @param removeStopWords @return
protected String[] toWords(String s, boolean removeStopWords) {
		String[] words = s.split("\\s");
		List<String> adjusted = new ArrayList<String>();
		for (int i = 0; i < words.length; i++) {
			if (!removeStopWords || !STOP_WORDS.contains(words[i]))
				adjusted.add(words[i].toLowerCase());
		}
		return adjusted.toArray(new String[adjusted.size()]);
	}
protected String [ ] toWords ( String s , boolean removeStopWords ) { String [ ] words = s . split ( "\\s" ) ; List < String > adjusted = new ArrayList < String > ( ) ; for ( int i = 0 ; i < words . length ; i ++ ) { if ( ! removeStopWords || ! STOP_WORDS . contains ( words [ i ] ) ) adjusted . add ( words [ i ] . toLowerCase ( ) ) ; } return adjusted . toArray ( new String [ adjusted . size ( ) ] ) ; }
Returns an array containing the individual white-space delimited words
 contained by the given string, normalizing to lowercase and optionally
 removing stop words.
Returns an array containing the individual white - space delimited words contained by the given string normalizing to lowercase and optionally removing stop words .