docs: function sanitize(lang, filter) {
    if(!(typeof lang == 'string')) return lang;
    lang = lang.replace(/\..*$/, '').toLowerCase();
    if(typeof filter == 'function') {
      lang = filter(lang);
    }
    return lang;
  }