public IEnumerable<String> Predict(String prevWords, String currentWord) { bool success = true; var wordList = predict(prevWords, currentWord, ref success); if (!success) { Log.Debug("Prediction error. Will initialize again"); var retVal = Init(); if (retVal) { wordList = predict(prevWords, currentWord, ref success); } } return wordList; }