Releases: booleanbridge/profanity_php
Releases · booleanbridge/profanity_php
v3
What's Changed
- Added v2 of the wordlist as a submodule
- Added support for Phrases using Boyer-Moore search with pre-computed Tables.
- Improved support for the profane word using a hash table.
- Added build instructions and code to accommodate new changes to the Wordlist
- It is as fast as I can make it, it takes around 50ms on average to check 14-word sentences in all modes.
Full Changelog: v2...v3.0.0
Hashing, Arrays and empty()
v1.1
What's Changed
- change in hi and en by @rahulsh099 in #3
- Optimized the code by @therohitdas in #4
New Contributors
- @rahulsh099 made their first contribution in #3
- @therohitdas made their first contribution in #4
Full Changelog: v1.0.1...v1.1
Improved performance
Array sorting was not required so removed it. Boom! Performance Boost.
First Release
Added simple isProfanity() function.
Tries to guess the language by using
- HTTP_ACCEPT_LANGUAGE header
- Language used by a country (gets country from HTTP_CF_IPCOUNTRY)