Chromeの新しいタブで英単語を覚える拡張機能「Magoosh Vocabulary」
「Magoosh Vocabulary」Chrome拡張機能
ちょっとした合間に英単語を覚える方法がないか探していたところ見つけたのが「Magoosh Vocabulary」というChrome拡張機能。
上記リンクからアドオンをインストールすると、新しいタブを開くと下図のように単語、意味、例文がランダムで表示されるようになる(▶を押せば英単語の発音もわかる)。新しいタブを開いて検索している人なんかは検索するまでの間に英単語を見ることになるのでよいかも。
Magooshは海外のオンライン教材なので意味は日本語ではなく英語で記述してある。GRE(アメリカ合衆国やカナダの大学院へ進学するのに必要な共通試験)向けの英単語ということなので難易度は高め。
拡張機能の中身を見てみる
1,000単語表示されるみたいだがどのような英単語があるのか調べてみる。
ChromeデベロッパーツールのNetworkタブを見てみるとwords.jsonというjsonファイルから英単語リストを取得している。
/Users/(ユーザ名)/Library/Application Support/Google/Chrome/Default/Extensions
その下を探すと、
oooelhhaglnggehlocjjmgngfknfclak/2.1.1_0/words.json
というjsonファイルがあり、中身は以下のようになっている。
$ cat words.json | jq '.' [ { "id": 388, "slug": "anemic", "front": [ { "type": "word", "content": "anemic" } ], "back": [ { "type": "word", "content": "anemic", "styles": [ "word-small" ] }, { "type": "text", "content": "<strong>adjective:</strong> lacking energy and vigor" }, { "type": "example", "content": "After three straight shows, the lead actress gave an <strong>anemic</strong> performance the fourth night, barely speaking loudly enough for those in the back rows to hear." } ] }, …
単語だけ抽出してみると、
$ cat words.json | jq '.[].back[0].content' | head "anemic" "anodyne" "approbatory" "artlessness" "bowdlerize" "cede" "charlatan" "derelict" "duplicity" "effrontery"
のような感じ。実際にはMagooshで始まる宣伝のような英単語も登録されていたので1,008単語あった。
$ cat words.json | jq '.[].back[0].content' | grep 'Magoosh' "Magoosh Video Lessons" "Magoosh Score Guarantee" "Magoosh Blog" "Magoosh Free Trial" "Magoosh Practice Exams" "Magoosh Practice Questions" "Magoosh Score Estimator" "Magoosh"