From: Jason Woofenden Date: Sat, 12 Oct 2013 21:02:25 +0000 (-0400) Subject: avoid "alternative form of ..." definitions X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=commitdiff_plain;h=68b1483d4de09c4ea881b94a712f12171661d951 avoid "alternative form of ..." definitions --- diff --git a/main.coffee b/main.coffee index 0467055..b444f1a 100644 --- a/main.coffee +++ b/main.coffee @@ -505,7 +505,7 @@ extract_wiktionary_definiton = (html) -> if part and el.tagName is 'OL' $(el).children().each (i, el) -> new_def = $(el).text() - if new_def.substr(0, 9) is '(obsolete' or new_def.substr(0, 8) is "(archaic" + if new_def.substr(0, 9) is '(obsolete' or new_def.substr(0, 8) is "(archaic" or new_def.substr(0, 20) is "Alternative form of " key = 'obsolete' else if part is 'verb'