code: def readCorpus(location):
      
      print("Reading corpus from file(s)...")
  
      corpus = ''
  
      if '.txt' in location:
          with open(location) as fp:
              corpus = fp.read()
      else:
  
          dirFiles = listdir(location)
          nFiles = len(dirFiles)
  
          for f in tqdm(dirFiles):
              with open(location+"/"+f) as fp:
                  corpus += fp.read()
  
      return corpus
docs: Returns the contents of a file or a group of files as a string.
  
      :param location: .txt file or a directory to read files from.
      :type location: str.
  
      :returns: A string of all contents joined together.
      :rtype: str.
  
      .. note::
  
          This function takes a ``location`` on disk as a parameter. Location is
          assumed to be a string representing a text file or a directory. A text
          file is further assumed to contain ``.txt`` as a file extension while
          a directory may be a path.
  
      Example:
  
      .. code-block:: python
  
                      from rnlp.corpus import readCorpus
  
                      # If you have a text file:
                      doi = readCorpus('files/doi.txt')
  
                      # If you have multiple files to read from:
                      corpus = readCorpus('files')