opt.word can be any one of string, array and object