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
+
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
15
+
one floating around)
16
+
17
+
1. Remove vowels, H, W and Y
18
+
2. Encode each char with its code value
19
+
3. Remove adjacent duplicate numbers
20
+
21
+
4. Return First letter, followed by the next 3 letter's code
22
+
numbers, if they exist.
23
+
24
+
Others I will implement soon include, Extended Soundex,
25
+
Metaphone and the LC Cutter table
26
+
}
27
+
Language:"English"
28
+
Email:%allenk--powerup--com--au
29
+
library: [
30
+
level: 'intermediate
31
+
platform: 'all
32
+
type: 'tool
33
+
domain: [DB text text-processing]
34
+
tested-under: none
35
+
support: none
36
+
license: none
37
+
see-also: none
38
+
]
39
+
Version: 1.0.0
40
+
]
41
+
42
+
soundex: func[
43
+
{Returns the Census Soundex Code for the given string}
0 commit comments