add eraseIndex fucntion
add total frequency field in field and part of speech types