/// <summary> /// Adds the specified text to the user's personal /// word prediction model to learn the user's writing /// style. This makes word prediciton more relevant. /// </summary> /// <param name="text">Text to add</param> /// <returns>true on success</returns> protected virtual bool learn(String text) { bool result = false; try { presage.learn(text); result = true; } catch (Exception ex) { Log.Exception(ex); } return(result); }
/// <summary> /// Adds the specified text to the user's personal /// word prediction model to learn the user's writing /// style. This makes word prediciton more relevant. /// </summary> /// <param name="text">Text to add</param> /// <returns>true on success</returns> public bool Learn(String text) { bool result = false; if (Common.AppPreferences.EnableWordPredictionDynamicModel) { try { _presage.learn(text); result = true; } catch (Exception ex) { Log.Exception(ex); } } return result; }