Create Word feature extraction

Extract words with user specified features from a document and output the same to a file.For example extract all words ending with 'ing' to a file named ing.txt.