A program similar to the morphology program for plurals


Adding -ing to verbs

A program similar to the morphology program for plurals discussed in class. Your program should take a single word as input, modifying it as appropriate, and adding ing to the end of the word. Specifically, given words in the Input column of the following table, it should return the corresponding Output word. The decisions about how to modify the words should be based on the final three letters of the input word. The status of these final 3 letters as vowels (a,e,i,o,u) or consonants (other letters) is important. In some cases, the final letter of the input word should be repeated before adding ing. In some cases, the final letter of the input word should be deleted before adding ing. Remember to use slices to represent parts of words. See slides for details about slices (using both positive and negative integers). Hint: to keep things simple, convert all input to lower case, using word = word.lower(), before running your code on that word.

Solution Preview :

Prepared by a verified Expert
Business Management: A program similar to the morphology program for plurals
Reference No:- TGS02943081

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)