Beispiel #1
0
 public Task <Option <RichFormatting> > Answer(Request request, CancellationToken token)
 {
     return(DictUtils.Lookup(
                request,
                t => dict.Lookup(t),
                r => GreedyLookup(r),
                kana));
 }
Beispiel #2
0
 public void Dictionary()
 {
     using (var dict = new YomichanTermDictionary(TestDataPaths.Kenkyusha5, TestDataPaths.Kenkyusha5 + ".cache"))
     {
         var entries = dict.Lookup("発行市場");
         var entry   = entries.Single();
         Assert.AreEqual(entry.Reading, "");
         Assert.AreEqual(entry.Glossary.Single(),
                         "発行市場 〔株式などの〕 an ┏issue [investment] market; a primary market.\n");
     }
 }