class TranslatorImp implements Translator {

	public String EnglishStringToChineseString(Analyzer analyzer, String EnglishString) {
		String[] nodes = analyzer.parserEnglishString(EnglishString);
		StringBuilder sb = new StringBuilder();
		for(String temp:nodes) {
			char[] caseTemp = temp.toCharArray();
			caseTemp[StableData.INT_ONE] = String.valueOf(caseTemp[StableData.INT_ONE])
					.toUpperCase().charAt(StableData.INT_ONE);
			if(etc.containsKey(temp)) {
				sb.append(etc.get(temp).split(StableData.NLP_DOT)[StableData.INT_ONE]);
			}else if(fulletc.containsKey(String.valueOf(caseTemp))){
				sb.append(fulletc.get(String.valueOf(caseTemp)));
			}else {
				sb.append(temp);
			}
			sb.append(StableData.SPACE_STRING);
		}
		return sb.toString();
	}

}