Extracting text, e.g. word definitions, from wiki pages is a problem
often discussed on this list and everyone has their approach: did you
document your approach on mediawiki.org? It's important to share best
practices and to make the MediaWiki community aware of your use cases,
so that they can be kept in mind when developing APIs etc.