Installing yor on a M1 Mac:

brew tap keot/homebrew-tap
brew install keot/homebrew-tap/yor
yor  # this will take a few seconds as Rosetta 2 does its magic