Which figure of speech is used in this text?
I was just beginning to yawn with nerves . . . when I knew his tattarrattat at the door.
—James Joyce, Ulysses
A. onomatopoeia
B. simile
Pick the correct answer from the listed options and provide the letter of the selected option.

A