A passerby is a person who happens to be walking past. Ask a passerby, a passerby called for help, stopped by a passerby.
The plural moves the s to the middle — passersby — because the by is a preposition rather than part of the noun, and the same happens in attorneys general. The word matters in first aid training, since a passerby is who usually finds somebody in trouble.
1nounpasserbyA person who happens to be walking past.
“A passerby heard the cries and called an ambulance.”
passerby is a person.
Also accepted in games: passer-by
passer-by comes from passer + by. Compare bystander.
Etymology from Wiktionary, CC BY-SA