Assign automatically a role to a new user in Drupal 8

We recently had a project that required use to automatically assign a role to new users base on the values passed by that use in the registration form. We created a module for that , auto_user_role, sorry if the name is not the best, but at the time it looked like a good name. The bundle is actually pretty useful, but we would like to know your opinion, we have released the code on github , please hit the link and let us know how we could improve it.