ACAT.Extensions.Default.WordPredictors.PresageWCF.PresageWordPredictor.Learn C# (CSharp) Method

Learn() public method

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.
public Learn ( String text ) : bool
text String Text to add
return bool
        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;
        }