private void addTextInformation(Term root, ArrayList<Term> overlappingTerms, ArrayList<Integer> totalPagesInSelectedChapters){
		//Add the description for the root term.
		textInformation += "Search term: "+root.getTerm()+" is in the selected chapter(s).\n\nSubterms of "+root.getTerm()+" also found in these chapters are:\n";
		
		//Add the descriptions for the sub terms.
		ArrayList<Term> subTerms = root.getSubTerms(); 
		for(int j = 0;j < subTerms.size();j++){
			ArrayList<Integer> pageRangeForSubTermInSelectedChapters = determinePagesOfTermInSelectedChapters(subTerms.get(j).getExtendedRange().getRanges(),totalPagesInSelectedChapters);
			if(pageRangeForSubTermInSelectedChapters.size() != 0){
				textInformation += subTerms.get(j).getTerm()+"\n";
			}
		}
		textInformation += "\n";
		//Add the overlapping terms.
		textInformation+="Terms that share pages with the search term(or any of it's subterms) are:\n";
		for(int i = 0;i < overlappingTerms.size();i++){
			textInformation+=overlappingTerms.get(i).getTerm()+"\n";
		}
		textInformation+="\n";
	}