Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert UpperCase to Sentence?
Message
De
20/11/2012 09:45:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01557608
Message ID:
01557648
Vues:
54
>>>That's the only reasonable assumption... but the readers of the converted text will soon try to push it in the direction of the impossible, as soon as they start discovering uncovered cases. Once one starts heading in that direction, there's no end to it.
>
>Haha! Ok, Dragan, have you been talking to my client? ... You are absolutely right, that is exactly what they are going to do.

Kevin, if that is the case, then I recommend you accomplish as much as is possible, and then allow the users to setup the criteria for post-processing sentence components which contain unique needs.

My advice is don't try to create the rules for all cases, because you never will be able to do so. Instead, setup a framework which allows the rules to be addressed. Add initial cases that are known like:

(0) Word X appears, replace with word Y
(1) Word X appears before word Y (or words Y), then do this
(2) Word X appears after word Y (or words Y), then do this
(3) Word X appears in a sentence with word Y, then do this
(4) Word X is used after a pronoun, do this,
(5) Word X is used after an action verb, do this.
(6) Word X is used after a verb of being, do this.
(7) Word X is used after an adverb, do this.
(8) Et cetera

Also allow the framework to have exception cases. Such-and-such is true, unless one of these conditions is true, etc.

Then let the users self-determine their own cases through use over time by creating cases and re-processing the original sentence until they get it right.

You'll also need orders of precedence. Should be a fun project! :-)

Best regards,
Rick C. Hodgin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform