array unique on getWords which returns data for autocomplete