You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Purpose:{Soundex Encoding returns similar codes for similar sounding words or names. eg Stephens, Stevens are both S315, Smith and Smythe are both S53. Useful for adding Sounds-like searching to databases}
7
7
Comment:{
8
-
This simple Soundex returns a code that is up to 4 characters
9
-
long, the /integer refinement will return an integer code
10
-
value instead. An example for searching a simple phone number
11
-
database, with Soundex is included. For improved search
12
-
speed, you could store the soundex codes in the database.
13
-
14
-
This is the basic algorithm (There are a number of different
8
+
This is the basic Soundex algorithm (There are a number of different
15
9
one floating around)
16
10
17
11
1. Remove vowels, H, W and Y
@@ -21,8 +15,7 @@ REBOL [
21
15
4. Return First letter, followed by the next 3 letter's code
22
16
numbers, if they exist.
23
17
24
-
Others I will implement soon include, Extended Soundex,
25
-
Metaphone and the LC Cutter table
18
+
TODO: Other algorithms: Extended Soundex, Metaphone and the LC Cutter table
26
19
}
27
20
Language:"English"
28
21
Email:%allenk--powerup--com--au
@@ -36,42 +29,50 @@ REBOL [
36
29
license: none
37
30
see-also: none
38
31
]
39
-
Version: 1.0.0
32
+
Version: 1.1.0
33
+
Type: module
34
+
Exports: [soundex]
35
+
Needs: 3.0.0
36
+
History: [
37
+
17-Jul-1999 @Allen "Initial version"
38
+
16-Jul-2024 @Oldes "Ported to Rebol3"
39
+
40
+
]
40
41
]
41
42
42
-
soundex: func[
43
+
soundex:function/with[
43
44
{Returns the Census Soundex Code for the given string}
0 commit comments