The only issue with that is 10m is nothing in football, while it can make a massive difference in rugby.
The only area of concern would be around the penalty area, if a penalty kick is then awarded.
I remember back in my school rugby days we all called every referee 'sir'. Wouldn't dare start calling them 'ref' in case they got offended and gave penalties.
I just think football should introduce 5 minute sin bins for backchatting/swearing. It would 100% eradicate the issue.