private IEnumerable <IdiomDetector.Result> LookAhead(Request request, int ahead = 5) { return(idiomDetector.Detect(Impl(request, ahead))); string Impl(Request r, int a) { return(string.Join("", r.SubsequentWords.Take(a))); } }
public void Basic() { var entries = idiomDetector.Detect("鼻の下"); var result = entries.First(e => e.DictionaryEntry.KanjiEntries.Select(k => k.Kanji).Contains("鼻の下を伸ばす")); CollectionAssert.AreEqual(new[]