static void DoSpeechSplitByWords(List <Upgrade> upgrades, List <Pilot> pilots) { XWSpeech speech = new XWSpeech(pilots, upgrades); speech.splitIntoWords(); speech.justWordList.Sort(); List <string> verbs = xwDictionary.getVerbs(speech.justWordList); List <string> nouns = xwDictionary.getNouns(speech.justWordList); List <string> adVerbs = xwDictionary.getAdVerbs(speech.justWordList); }
static void DoXWDictionaryBuild(List <Upgrade> upgrades, List <Pilot> pilots) { XWSpeech speech = new XWSpeech(pilots, upgrades); speech.splitIntoWords(); speech.justWordList.Sort(); List <string> verbs = xwDictionary.getVerbs(speech.justWordList); List <string> nouns = xwDictionary.getNouns(speech.justWordList); List <string> adVerbs = xwDictionary.getAdVerbs(speech.justWordList); string outputVerbFileName = xwDictionary.getDictionaryPath(Meta.PATH_TYPE.XW_VERB); string outputAdVerbFileName = xwDictionary.getDictionaryPath(Meta.PATH_TYPE.XW_AD_VERB); string outputNounFileName = xwDictionary.getDictionaryPath(Meta.PATH_TYPE.XW_NOUN); xwDictionary.writeDictionaryData(verbs, outputVerbFileName); xwDictionary.writeDictionaryData(nouns, outputNounFileName); xwDictionary.writeDictionaryData(adVerbs, outputAdVerbFileName); }
static void DoSpeechSplitByPhrases(List <Upgrade> upgrades, List <Pilot> pilots) { XWSpeech speech = new XWSpeech(pilots, upgrades); speech.splitIntoPhrases(); }