Skip to content

Releases: booleanbridge/profanity_php

v3

10 Dec 19:25
Compare
Choose a tag to compare

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()

09 May 15:33
b8aa10a
Compare
Choose a tag to compare

v1.1

06 May 14:49
26f90bd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.1...v1.1

Improved performance

18 Nov 07:55
Compare
Choose a tag to compare

Array sorting was not required so removed it. Boom! Performance Boost.

First Release

18 Nov 07:42
d153c2b
Compare
Choose a tag to compare

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)