normalizeWords can now work on scalars other than strings.