Using Python The Soundex algorithm is used to encode strings. The result of the algorithm is a letter followed by three digits. Similar words will have the same code. For example, Adams and Addams...


Using Python The
Soundex algorithm
is used to encode strings. The result of the algorithm is a letter followed by three digits. Similar words will have the same code. For example, Adams and Addams would have the same code. There are several different algorithms for Soundex. Using Python, this online interpreter, and the below listed requirements, create an application that will produce a Soundex-like code based on user-entered string:



  1. The first letter of the word is the first letter of the Soundex code.

  2. Remove or ignore all letters
    a,
    e,
    i,
    o,
    u,
    h,
    y, and
    w.

  3. Replace the letters that remain, as follows:



































Replace this:




With this:



b, f, p, and v



1



c, g, j, k, q, s, x, and z



2



d and t



3



l



4



m and n



5



R



6




  1. If two or more digits are identical (e.g., 11, 222), only keep the first digit.

  2. Choose the first 3 digits, and append to the first letter from Step 1.

  3. If you only have 1 or 2 digits, append 0s at the end for the final code.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here