public string fit(LearnItem item, string sentence)
        {
            string res = "";

            try
            {
                var    param    = getParams(item.question);
                string paramstr = "";
                for (int i = 0; i < param.Length; i++)
                {
                    if (!param[i].isParam)
                    {
                        paramstr += param[i].value;
                    }
                    else
                    {
                        paramstr += "(?<a" + i + ">\\S+)";
                    }
                }

                Regex reg    = new Regex(paramstr, RegexOptions.None);
                var   regres = reg.Match(sentence);
                if (regres.Success)
                {
                    // match it
                    res = item.answer;
                    for (int i = 0; i < param.Length; i++)
                    {
                        if (param[i].isParam)
                        {
                            res = res.Replace("{" + param[i].value + "}", regres.Groups["a" + i].Value);
                        }
                    }
                    foreach (var p in param)
                    {
                    }
                }
                // TODO: 加入内置函数调用和声明
            }
            catch (Exception e)
            {
            }


            return(res);
        }
        public void addLearn(string question, string answer, string author)
        {
            LearnItem item = new LearnItem(question, answer, author, DateTime.Now);

            items.Add(item);
        }