The word choice shaping the tone of a text is called diction.
To add, diction<span> <span>in its original, primary </span></span>meaning<span>, refers to the writer's or the speaker's distinctive
vocabulary choices and style of expression in a poem or story.
</span><span>If you have any other questions, please don’t hesitate to ask again.</span>