Up: Ceng-111 9798 Fall Homework-2 Previous: REGULATIONS Homework Page: Ceng-111 Homework's

PROBLEM

You are asked to develop a pluralizer for Turkish. More specifically, your pluralizer should take a word, presumably in Turkish, and produce its plural form. You are expected to write a Scheme function that takes a Turkish word it the form described below and return its pluralized form.

Call your pluralizing procedure plural.

The argument word will be lowercase except for I, O, U, G, C and S, which represent the Turkish characters ý, ö, ü, ð, ç and þ, respectively.

Notice that to preserve the lowercase/uppercase distinction we need to represent the words as strings rather than symbols.

Here are some examples:

(plural "kuGu")
kuGular

(plural "dert")
dertler

(plural "nOron")
nOronlar

(plural "kiler")
kilerler

(plural "zmcuk")
zmcuklar

(plural "zmck")
zmck?