public void Register(string id, string description) { description = description.Replace(" : ", ":"); string[] content = description.Split(':'); Item item = new Item(); item.ID = id; for (int i = 0; i < content.Length - 1; i++) { if (i % 2 == 0) { content[i] = TextCleaner.CleanText(content[i]); content[i] = TextCleaner.RemovePonctuation(content[i]); item.AddIntent(content[i], content[i + 1]); } } item.SaveItem(); }