When Mrs. Anne came into the room, she thought to herself, “Is it just me, or is it really hot in here?” he went to the window and opened the lower part of it, only to have a number of mosquitoes quickly fly right at her. She said [color=red]a few choice words, and then she began swatting the pesky mosquitoes, managing to hit a few of them when they came to rest on her arm.
In this context, I think the words “a few choice words” mean swearing. If so, does that idiom means swearing, or does the meaning changes depending on the context?
‘A few choice words’ means literally ‘a few words specially selected’. This is an expression that describes strong language as in your sentence the woman is angry about the mosquitoes flying at her. It is if you like, a polite way of referring to swear words.
You are right about the meaning in this context, but the ‘choice words’ can change according to the context, so they do not always indicate swearing. Just words appropriate to that situation, usually in the vernacular.
I presume your extract contains a typo, and it should be ‘She went to the window’ not ‘he went to the window’.