https://github.com/github/choosealicense.com/pull/472#issuecomment-270048688 very rough, naive, probably bad implementation