コード例 #1
0
        public long AddOrCreateWord(string stemmedWord, string culture)
        {
            var id = FindWordId(stemmedWord, culture);

            if (id > 0)
            {
                return(id);
            }
            id = provider.InsertWord(stemmedWord, culture);
            return(id);
        }