View Single Post
  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod
 
Posts: n/a
Default Singular/Plural or He/she

Hi Michelle,

To get you started on the single/plural issue, try coding up a series of
fields like this:
{QUOTE{ASK Number "How many bowls?"}"{Number} bowl{=Number-1 \# s;;}."}
and
{QUOTE{ASK Number "How many tries?"}"{Number} tr{=Number-1 \# ies;;y}."}
and input any number you like. The above use a formula field to work out
whether to add/not add the plural extension, and assumes you're not working
with negative values ...

In a mailmerge, you'd use something like:
{MERGEFIELD Word}{=(MERGEFIELD Qty -1 \# s;;}}
for words where the plural form simply requires the addition of an 's', or:
{MERGEFIELD Word_Stem}{=(MERGEFIELD Qty -1 \# ies;;y}}
for words ending in 'y' where the plural form requires replacing the 'y'
with 'ies'.

As you can see, this could get quite complicated once you start working with
the many permutations and combinations that are possible.


Cheers


"Michelle" wrote in message
...
Thanks so much, that gender toolbar is great and works fine in 2003. I

have
emailed you as requested to get notified of updates, but mention in the

email
that I may need to hire your services. I know you say you don't want to
attempt the singular/plural part, but if you can't do it, certainly I

cannot!
Can you do it, or can you refer me elsewhere?

"Charles Kenyon" wrote:

you would want a gender field
I wouldn't want to attempt the singular plural but you could.
In your Word merge you would test for the contents of the gender field

and
then use different words depending on tHat field's contents. For

examples of
fields that do this download the Gender Toolbar template from
http://addbalance.com/word/download.htm.

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"Michelle" wrote in message
...
What would be the best way to change a merged document based on
masculine/feminine, singular/plural. For example, if the subject was

a
woman, it would be "she", "her", "hers" etc? If there were two or

more
people referenced, it would be "they", "them", their", etc. Also the
verbs
would have to be changed from singular to plural, e.g., 'she buys",

"they
buy". And what about capitalization for the beginning of sentences.

This
is
beginning to seem impossible!

The data for this will be merged from a database. Should I create

fields
in
the database to indicate Male, Female or Plural, or should I use

something
in
Word to indicate?