-----Ursprüngliche Nachricht----- Von: saaj [ Gesendet: 24.03.2010 15:17:19 An: haskell-cafe@haskell.org Betreff: [Haskell-cafe] Re: really difficult for a beginner like me...
>Thank you. >I will try it > >What about the second part, capitalisation thing? can you help me with that as >well? > >"Treat a capitalised word (one or more capitals) as being different from the >word in all lower case unless it is at the start of a sentence with only the >initial letter capitalised." > Well, the obvious idea is to do that by lower-casing the words which fit these criteria before further processing. Identifying the start of a sentence is difficult if you have to take all possibilities for dots, question marks and exclamation marks into account, but probably treating just the semi-obvious cases is enough (check whether you have e.g. an abbreviation instead of an end-of-sentence dot), that's not too hard. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe