What context can I use each word in?
Learn when and how to use these words with these examples!
snippet
Example
I found a helpful code snippet online that solved my problem. [snippet: noun]
Example
The news anchor shared a snippet of the interview with the celebrity. [snippet: noun]
Example
The company's new slogan is a catchy snippet that sticks in your mind. [snippet: noun]
fragment
Example
The archaeologist found a fragment of a pottery vase from ancient times. [fragment: noun]
Example
The writer struggled to connect the fragments of their story into a cohesive plot. [fragment: noun]
Example
The scientist presented a fragment of their research on the topic at the conference. [fragment: noun]
Good things to know
Which word is more common?
Snippet is more commonly used than fragment in everyday language, especially in the context of programming or marketing. However, fragment is still a useful word to know, especially for writers and artists.
What’s the difference in the tone of formality between snippet and fragment?
Both snippet and fragment are relatively informal words and can be used in casual conversation or writing.