Question: Finally, write a predicate soundslike/2 that will take two arguments. You can add it to the end of fst.pl, or create a new file. Your

Finally, write a predicate soundslike/2 that will take two arguments. You can add it to the end of fst.pl, or create a new file. Your predicate will start with: soundslike(X, Y) :- and enter your code after that. The soundslike/2 (remember, the slash 2 just means that soundslike takes two arguments) predicate will be true if each of the two arguments is a list of English words, and each of the lists have the same pronunciation. For example, if you enter ?- soundslike([ice, cream], W). you should get the same values of W as in the ice cream example above. That is, each value of W will be a list of words that together sound like "ice cream". Include your soundslike/2 code in your submission (just paste it into your document).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!