Abstracted unknown word strategy calculation and added more logging