Improve document analyser performance (don't request analysis if the user didn't actualy typed some text)
Implements #11