public static ArrayList<Pattern> findPatterns(String review, String subject, String object){
		String[] words = review.split("\\s+");
		ArrayList<Pattern> pList =  new ArrayList<Pattern>();
		for(int i = 0; i < words.length;i++){
			if(words[i].equals(subject)){
				for(int j = i; j < i + 5; i++){
					if(words[j].equals(object)){
						ArrayList<Word> prefix = new ArrayList<Word>();
						if(i > 0){
							Word word  = new Word(words[i-1], .2);
							prefix.add(word);
						}
						ArrayList<Word> middle = new ArrayList<Word>();
						for(int k = i; k < j; k++){
							Word word = new Word(words[k], .5); // supposed to use frequency function to determine weights 
							middle.add(word);					//but it's not defined anywhere
						}
						ArrayList<Word> suffix = new ArrayList<Word>();
						if(j < words.length){
							Word word  = new Word(words[i-1], .2);
							suffix.add(word);
						}
						Pattern pattern = new Pattern(prefix,subject,middle,object,suffix);
						pList.add(pattern);
					}
				}
			}
		}
		return pList;
	}