class TranslatorImp implements Translator {

	public String MixedStringToChineseString(Analyzer analyzer, String mixedString) {
		List<String> nodes = analyzer.parserMixedString(mixedString.toLowerCase());
		StringBuilder sb = new StringBuilder();
		Iterator<String> it = nodes.iterator();
		while(it.hasNext()) {
			String temp = it.next();
			if(poscc.containsKey(temp)) {
				sb.append(temp);
			}else {
				String[] strings = analyzer.parserEnglishString(temp);
				for(String string:strings) {
					if(string == null || string.length() < StableData.INT_ONE) {
						string = StableData.EMPTY_STRING;
					}
					if(etc.containsKey(string)) {
						sb.append(etc.get(string).split(StableData.NLP_DOT)[StableData.INT_ZERO]);
					}else if(fulletc.containsKey(string)){
						sb.append(fulletc.get(string));
					}else {
						sb.append(temp);
					}
				}
			}
		}
		return sb.toString();
	}

}