radomirbosak / duden

CLI for http://duden.de dictionary written in Python
MIT License
99 stars 19 forks source link

Speed-up loading words if their urlname matches the word itself #174

Open radomirbosak opened 1 year ago

radomirbosak commented 1 year ago

For example the word Hase has url https://www.duden.de/rechtschreibung/Hase

But the word einfach has the url

depending on whether we mean the adjective or particle.

In simple case like Hase, we should have two parallel requests:

and if the latter results in existing page, we parse and display it. If not, we use the current algorithm.