List view
- No due date•0/1 issues closed
We've already got a decent list of phrases in English, Spanish, French, Japanese, etc. Now it's time to enable localization to the filter. // french profanity filtering $(document).profanityFilter({ localize: true, // bool language: 'fr', // string - en | fr | es | de | etc localizationDir: '/localResources', // string - directory customSwears: ['merde'], // array externalSwears: 'path/to/swears.json', // string - json file replaceWith: ['les matières fécales'] // array or string - arrays should be words, strings should be single characters }); Defaults: localize: true, language: 'en', localizationDir: '/localResources', We should still support `externalSwears` whereby the client can still add custom phrases to an external file.
No due dateThe idea of this todo item is to simply add leek speak filtering. IE: ass @ss a$$ etc... The way I see it, regex's are too system intensive to run every time the method is called, so instead, leek speak is only going to be available on modern browsers. I want to suck the phrases out of both the custom list and the external list, run all the phrases through a regex and swap out all known leek speak characters (example: `["a", "@", "i","!"]`), from there I'll store the existing words with the new words into `localStorage`.
No due date•0/1 issues closed