Identifying word types