1 /**
  2  * Creates SentenceDescription objects with the computed data from the document
  3  * @returns {Array} Array of SentenceDescription objects
  4  */
  5 function getDescriptions(){
  6 	var sentencedescriptions = new Array();
  7 //	var sentTextArray = document.app.getSentenceText();
  8 	var numSentences = document.app.getNumberOfSentences();
  9 	
 10 	for(var i=0; i<numSentences; i++){
 11 		var text = document.app.getSentenceText(i);		//Text
 12 		var wordLen = document.app.getWordLength(i);	//WordLength
 13 		var sentLen = document.app.getSentenceLength(i);	//SentenceLength
 14 		var vocCompl = document.app.getVocabularyComplexity(i);		//VocabularyComplexity
 15 		var nomForm = document.app.getNominalForms(i);		//NominalForm  -  Noun-Verb-Ratio
 16 		var sentStructCompl = document.app.getSentenceStructureComplexity(i);		//SentenceStructureComplexity
 17 		sentencedescriptions.push(new SentenceDescription(wordLen,sentLen,vocCompl,nomForm,sentStructCompl,text));
 18 	}
 19 	
 20 	return sentencedescriptions;
 21 }