WiktionaryParser
WiktionaryParser copied to clipboard
Can't find word which exists; possibly can't parse proper noun?
https://en.wiktionary.org/wiki/Dunia_Mpya exists for Swahili but WiktionaryParser can't find it. Maybe it doesn't know about proper nouns?
Test case:
from pprint import pprint
from wiktionaryparser import WiktionaryParser
parser = WiktionaryParser()
parser.set_default_language('swahili')
pprint(parser.fetch("Dunia Mpya"))
gives:
[{'definitions': [],
'etymology': '',
'pronunciations': {'audio': [], 'text': []}}]
here's another example: https://en.wiktionary.org/wiki/Kilimia
[{'definitions': [],
'etymology': 'From -lima (“cultivate”).\n',
'pronunciations': {'audio': [], 'text': []}}]
So it seems there's a problem with Swahili Proper Nouns.