Feature wordfrequency improve word identification

improved word identification logic