public static string whatTypeOfPhrase(string phrase, InferencesEngine engine) { PhraseItem[] items = getPhraseItems(phrase); return ""; }
private static void loadAsyncNext(object callback = null) { try { dico.IsLoaded = false; loader.beforeLoading(); Utils.translations = loader.loadTranslations(); dico.language = loader.loadLanguage(); dico.moods = loader.loadMoods(); dico.persons = loader.loadPersons(); dico.tenses = loader.loadTenses(); Factory factory = new Factory(dico.moods, dico.tenses, dico.persons); loader.loadDico(dico, factory); engine = new InferencesEngine(); loader.afterLoading(); dico.IsLoaded = true; } catch (Exception) { // logger erreur } if (callback != null && callback is LoadTerminated) (callback as LoadTerminated)(dico.IsLoaded); }