X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.coffee;h=a03fa73e435a9c454c6b7ce7f522d06188ba247a;hb=224a69161754c19b81d4b2ceae03bd8768af229c;hp=7403503ffbd17634eac77d8e485dc2795ba80e93;hpb=68e5fbaebfcb680543fdad88c3e474ba2c860625;p=hexbog.git diff --git a/main.coffee b/main.coffee index 7403503..a03fa73 100644 --- a/main.coffee +++ b/main.coffee @@ -526,8 +526,8 @@ 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" or new_def.substr(0, 20) is "Alternative form of " - key = 'obsolete' + 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 " or new_def.substr(0, 24) is "Alternative spelling of " + key = 'lame' else if part is 'verb' key = 'verb' @@ -541,7 +541,7 @@ extract_wiktionary_definiton = (html) -> if found.verb return false # break - part_defs = (finds[i] for i in ['verb', 'nonverb', 'obsolete'] when finds[i]) + part_defs = (finds[i] for i in ['verb', 'nonverb', 'lame'] when finds[i]) unless part_defs.length return false