public String extractNouns(String document) {
		String output = "";
		String word;
		if (document.length() > 1) {
			try {
				workflow.analyze(document);

				LinkedList<Sentence> resultList = workflow
						.getResultOfDocument(new Sentence(0, 0, false));
				for (Sentence s : resultList) {
					Eojeol[] eojeolArray = s.getEojeols();
					for (int i = 0; i < eojeolArray.length; i++) {
						if (eojeolArray[i].length > 0) {
							String[] morphemes = eojeolArray[i].getMorphemes();
							word="";
							for (int j = 0; j < morphemes.length; j++) {
								word = word + morphemes[j];
							}
							if(word.length()<maxLength)
								output =output + word+" " ;
						}
					}
				}
			} catch (Exception ex) {
				ex.printStackTrace();
				// output=ex.getMessage();

			}
		}
		return output;

	}