本文注釈をクライアントサイドで自動生成 ブログに書いた文章をクライアントサイドで解析してWikipediaから注釈を自動生成するスクリプトを作ってみた。wikipedia_annotaionクラスを持つSPANタグで囲まれた文章に対して分かち書きと簡単な単語判定を行い、切り出された単語ごとにWikipediaのAPIに問い合わせて注釈を生成する。 <span class="wikipedia_annotaion"> ブログ本文への注釈をWikipediaから...仕組み。</span> <script type="text/javascript" src="//bulldra.github.io/tiny_segmenter-0.2.js"></script> <script type="text/javascript" src="//bulldra.github.io/wikipedia