The sentence "the celery snapped as my brother ate it" is an example of onomatopoeia. Onomatopoeia is a figure of speech that refers to words that imitate the sound they describe, such as "snap," which imitates the sound of the celery stalk breaking as it is bitten by the brother.