From e8a70bf63c790e29fa95ffbffefbe36a06f48e1c Mon Sep 17 00:00:00 2001 From: Kyle Jacobson Date: Thu, 4 Jul 2019 12:46:49 -0700 Subject: [PATCH] strip out word senses and include them in results --- lib/lib/process-html.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/lib/process-html.js b/lib/lib/process-html.js index ee4ca73..b0f3b2e 100644 --- a/lib/lib/process-html.js +++ b/lib/lib/process-html.js @@ -60,10 +60,15 @@ function createTranslationItem (html) { var toType = $('.ToWrd em').text() $('.ToWrd em').remove() var to = $('.ToWrd').text() + var [fromSense, toSense] = $('.FrWrd')[0].nextSibling.children + fromSense = $(fromSense).text().trim() + toSense = $(toSense).text().trim() return { from, fromType, + fromSense, toType, + toSense, to, example: { from: [],