diff --git a/1995/esde/README.md b/1995/esde/README.md index 2f4a95c8b..08ed576d1 100644 --- a/1995/esde/README.md +++ b/1995/esde/README.md @@ -17,9 +17,7 @@ where data-file contains lines of < 255 chars in length. ### Try: ```sh -./esde esde.data Johanson -./esde esde.data2 read -./esde README.md date +./try.sh ``` @@ -45,10 +43,10 @@ Soundex code begins with the first letter of the word followed by a three-digit code. This is the algorithm: 0. Every letter in the word beyond the first letter is replaced by a digit. -1. Replace all pairs of the same code by single code (ex. R011235 -> R01235). -2. Remove all 0-codes (ex. R01235 -> R1235). -3. If length of code is > 4, get only first 4 codes (ex. R1235 -> R123). -4. If length of code is < 4, add zeros (ex. T12 -> T120). +1. Replace all pairs of the same code by single code (e.g. `R011235` -> `R01235`). +2. Remove all zeroes (e.g. `R01235` -> `R1235`). +3. If length of code is > 4, get only first 4 characters (e.g. `R1235` -> `R123`). +4. If length of code is < 4, add zeros (e.g. `T12` -> `T120`). These are the codes: diff --git a/1995/esde/try.sh b/1995/esde/try.sh new file mode 100755 index 000000000..f8e63399d --- /dev/null +++ b/1995/esde/try.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +make all >/dev/null || exit 1 + +echo "$ ./esde esde.data Johanson" +./esde esde.data Johanson +echo + +echo "$ ./esde esde.data2 read" +./esde esde.data2 read +echo + +echo "$ ./esde README.md date" +./esde README.md date diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 4bb5cee4b..a1ef8045d 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1865,6 +1865,11 @@ Cody added the [try.sh](1995/dodsond1/try.sh) script that uses the text file he provided which is input we suggested one try with the entry. +## [1995/esde](1995/esde/esde.c) ([README.md](1995/esde/README.md])) + +Cody added the [try.sh](1995/esde/try.sh) script. + + ## [1995/garry](1995/garry/garry.c) ([README.md](1995/garry/README.md])) Cody fixed the alt code so that it will compile with modern compilers. The