code: def get_acronyms(manuscript=os.path.expanduser('~/code/nlpia/lane/manuscript')):
      acronyms = []
      for f, lines in get_lines(manuscript):
          for line in lines:
              matches = CRE_ACRONYM.finditer(line)
              if matches:
                  for m in matches:
                      if m.group('a2'):
                          acronyms.append((m.group('a2'), m.group('s2')))
                      elif m.group('a3'):
                          acronyms.append((m.group('a3'), m.group('s3')))
                      elif m.group('a4'):
                          acronyms.append((m.group('a4'), m.group('s4')))
                      elif m.group('a5'):
                          acronyms.append((m.group('a5'), m.group('s5')))
      return sorted(dict(acronyms).items())