elwiktionary-20130612-pages-meta-current.xml

#main extraction function
def myextract(whichtitle, whichtext):
    a1 = whichtitle.decode('utf-8')
    b1 = whichtext.decode('utf-8')
    c1 = u'{{ουσιαστικό|el' in b1
    d1 = u'{{ακλ}}' in b1
    if d1 or (not c1):
        return False
    e1 =  [u'άι', u'άυ', u'έι', u'έυ', u'όι', u'όυ', u'ύι'] 
    for f1 in e1:
        if f1 in a1:
            return True 
    return False