Diversion is an option in which a prosecutor allows some kind of classes and/or community service in lieu of a guilty plea and this is mainly allowed for some first-time offenders. There is pretrial diversion and post-plea diversion and these may have a very different impact on your particular situation. Your lawyer will explain this to you.