Returns just the language portion of the mime type.
For example, for text/kotlin; role=gradle this will return text/kotlin. For text/plain; charset=us-ascii this returns text/plain
text/kotlin; role=gradle
text/kotlin
text/plain; charset=us-ascii
text/plain