Consider these two vim commands

1. `:% s/one/two/g`
2. `:% g/found/d`

I am wondering why the `g` signaling global replacement and delete respectively needs to be put in the end in substitution and at the beginning in delete.

Do these follow a pattern that I am missing, or is this a vim corner case?