Not totally sure if you're facing the same issue I did - However recently the sample file/buffer size for me, was less than 3KB (bydefault - this could be different in your case) - which is why, detection mechanism was ignoring the sample.
Hence, I recreated the sample/test keyword file as a word document, instead of a notepad. Additionally copy-pasted the keyword on more than 2-3 pages in the word document with the same keyword, which helped.