Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is for python.Thank you very much Homework 11 The Soundex algorithm is used to transform any word (and especially names) in English into a

image text in transcribed

This is for python.Thank you very much

Homework 11 The Soundex algorithm is used to transform any word (and especially names) in English into a code that consists of a letter and three digits. There are variations and elaborations of the code. This version does not conform to the rules applied for the US Census (with the additional benefit that students submitting a program glanced from the web will submit one that is not in compliance with these specifications). The algorithm tries to give the same code to similar sounding words. It proceeds in a number of steps. . Replace the bigrams in Table 1 with the specified letter 2. Change to string to capitalized letters. 3.The first letter of the string is maintained. All other occurrences of "A", "E", "I", "O", "U", "H", "W", and "Y" are changed to" 5 All letters with exception of the first one are changed into digits according to the 6. Repeatedly, one of all adjacent pairs of the same integer is removed 7. All digits "0" are removed. 8. Smaller codes are padded with zeroes to four letters total and larger codes are following translation table. shortened to four by removing the last digits. Table 1: Bigram substitution Table 2: Letter substitution DG GN C, G, J, K, Q, S, X, Z 2 D, T PH, PF F PS M.N CH 6 Notice that step 3 is important because it allows for the same digit in two locations. Examples for Soundex: "Dadaism">DADAISM-> DODOOSM-> DO30025->D325 Trump"-TRUMPTROMP T6051 -T651 "Pence"PENCE -> PO520-> P520-P52-P520 Tymczak"TYMCZAK-TOMCZOK - T052202 -TO5202 T522 "Ashcraft" ->ASHCRAFT-ASOCROFT-A2026013-> A22613 ->A226 "Schwarz"->SCHWARZ-SC0000RZ- S262

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

1. How is circuit switching used in Telephony? in WANs?

Answered: 1 week ago