Prepare for the winners of **IOCCC28**. > However these are not the 2024 droids you are looking for. :-) The HTML menu (both JavaScript and non-JavaScript) has been updated. The `Status -> Rules and guidelines' have been replaced with two separate menus `Status -> IOCCC rules` and `Status -> IOCCC guidelines`. Added a new top level `social.html` page: built from a new `social.md`. Sorted rules for building specific web pages in the top level `Makefile`. Added `make social` to make the `social.html` page from `social.md`. The `bin/gen-top-html.sh` now is able to process a argument of **social** to process the new top level `social.html` page. Changed `bin/gen-top-html.sh` VERSION from "2.0.0 2025-03-13" to "2.0.1 2025-07-25". Below `About -> Home page` a new `About -> IOCCC social media` menu item as added. Because the menu change touched every HTML file, we changed the general copyright date range for HTML files from "1984-2024" to "1984-2025" due to the extensive changes made for **IOCCC28**. Those markdown files that were modified in 2025 had their copyright date range also changed from "1984-2024" to "1984-2025". Rebuilt tarballs and sitemap due to the extensive HTML rebuilding. Ran `make update` to perform the above.
To build:
make all
To use:
./esde data-file word
where data-file contains lines of < 255 chars in length.
Try:
./try.sh
Judges' remarks:
When reading the source be careful to distinguish between variable names and library functions.
If you still don't know what it does, try https://en.wikipedia.org/wiki/Soundex.
Author's remarks:
what this program does
This program searches in the file words which have the same Soundex code of the given word, and print out lines with those words.
The Soundex code is used to find similar sounding words.
Soundex code begins with the first letter of the word followed by a three-digit code. This is the algorithm:
- Every letter in the word beyond the first letter is replaced by a digit.
- Replace all pairs of the same code by single code (e.g.
R011235->R01235). - Remove all zeroes (e.g.
R01235->R1235). - If length of code is > 4, get only first 4 characters (e.g.
R1235->R123). - If length of code is < 4, add zeros (e.g.
T12->T120).
These are the codes:
0 = A, E, H, I, O, U, W, Y
1 = B, P, F, V
2 = C, S, G, J, K, Q, X, Z
3 = D, T
4 = L
5 = M, N
6 = R
information about an info file:
An info file should be a text file consisting of lines of text (max. 256 bytes in each line).