goldsmith / Wikipedia

A Pythonic wrapper for the Wikipedia API
https://wikipedia.readthedocs.org/
MIT License
2.89k stars 519 forks source link

wikipedia.summary() searches for truncated term #280

Closed HyperbolicStudios closed 3 years ago

HyperbolicStudios commented 3 years ago

wikipedia.summary(search) appears to be returning the summary for the article that would be returned if the string contained in search were truncated by one letter. ex. wikipedia.summary("math", sentences=1) returns "A match is a tool for starting a fire." which is the proper results for the search "match" (assuming autocomplete is on.) wikipedia.summary("mathp", sentences=1) returns "Mathematics (from Greek: , mthma, 'knowledge, study, learning') includes the study of such topics as quantity (number theory), structure (algebra), space (geometry), and change (analysis)."

HyperbolicStudios commented 3 years ago

Seems to be resolved by auto_suggest=False