Four Letter Word generator based on an associative word dictionary.
Dependencies: _24LCXXX
Dependents: vfd_modular_clock_mbed
Four Letter Word generator based on an associative word dictionary.
Needs an EEPROM to function (can be programmed onto a 24LC512 I2C EEPROM, or available as a pre-programmed add-on board)
Comes with a censored mode that removes expletives as well as a fully uncensored mode.
For details see:
Diff: flw_blacklist.h
- Revision:
- 0:4d3dec05a4b7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flw_blacklist.h Tue Feb 10 09:53:03 2015 +0000 @@ -0,0 +1,72 @@ +/* + * Four Letter Word Generator + * (C) 2015 Akafugu Corporation + * + * This program is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + */ + +// +// Swear word blacklist for Four Letter Word database +// All words are encoded using ROT13 so that the cencored words are not +// directly visible in the file +// +// Must be alphabetized (according to the decrypted value!), since the +// list is searched by binary search +// + +const char word_0[] = "NAHF"; +const char word_1[] = "NEFR"; +const char word_2[] = "PNJX"; +const char word_3[] = "PYVG"; +const char word_4[] = "PBPX"; +const char word_5[] = "PBBA"; +const char word_6[] = "PENC"; +const char word_7[] = "PHAG"; +const char word_8[] = "QNTB"; +const char word_9[] = "QNZA"; +const char word_10[] = "QVPX"; +const char word_11[] = "QLXR"; +const char word_12[] = "SNTF"; +const char word_13[] = "SNEG"; +const char word_14[] = "SHPX"; +const char word_15[] = "TBBX"; +const char word_16[] = "URYY"; +const char word_17[] = "WRJF"; +const char word_18[] = "WVFZ"; +const char word_19[] = "WVMZ"; +const char word_20[] = "WVMM"; +const char word_21[] = "XVXR"; +const char word_22[] = "ZHSS"; +const char word_23[] = "ANMV"; +const char word_24[] = "CNXV"; +const char word_25[] = "CVFF"; +const char word_26[] = "CBBA"; +const char word_27[] = "CBBC"; +const char word_28[] = "CBEA"; +const char word_29[] = "ENCR"; +const char word_30[] = "FUVG"; +const char word_31[] = "FZHG"; +const char word_32[] = "FCVP"; +const char word_33[] = "FYHG"; +const char word_34[] = "GVGF"; +const char word_35[] = "GHEQ"; +const char word_36[] = "GJNG"; +const char word_37[] = "JNAX"; + +#define BLACKLIST_SIZE 37 + +const char *flw_blacklist[] = +{ + word_0, word_1, word_2, word_3, word_4, word_5, word_6, word_7, word_8, word_9, + word_10, word_11, word_12, word_13, word_14, word_15, word_16, word_17, word_18, word_19, + word_20, word_21, word_22, word_23, word_24, word_25, word_26, word_27, word_28, word_29, + word_30, word_31, word_32, word_33, word_34, word_35, word_36, word_37 +};