docs: def com_google_fonts_check_repo_dirname_match_nameid_1(fonts,
                                                         gfonts_repo_structure):
    """Directory name in GFonts repo structure must
       match NameID 1 of the regular."""
    from fontTools.ttLib import TTFont
    from fontbakery.utils import (get_name_entry_strings,
                                  get_absolute_path,
                                  get_regular)
    regular = get_regular(fonts)
    if not regular:
      yield FAIL, "The font seems to lack a regular."
  
    entry = get_name_entry_strings(TTFont(regular), NameID.FONT_FAMILY_NAME)[0]
    expected = entry.lower()
    expected = "".join(expected.split(' '))
    expected = "".join(expected.split('-'))
  
    license, familypath, filename = get_absolute_path(regular).split(os.path.sep)[-3:]
    if familypath == expected:
      yield PASS, "OK"
    else:
      yield FAIL, (f"Family name on the name table ('{entry}') does not match"
                   f" directory name in the repo structure ('{familypath}')."
                   f" Expected '{expected}'.")