JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
avoid "alternative form of ..." definitions
authorJason Woofenden <jason@jasonwoof.com>
Sat, 12 Oct 2013 21:02:25 +0000 (17:02 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sat, 12 Oct 2013 21:02:25 +0000 (17:02 -0400)
main.coffee

index 0467055..b444f1a 100644 (file)
@@ -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 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'
                                        key = 'obsolete'
                                else
                                        if part is 'verb'