public static function generate($options = array()) {
    $sentencesToDisplay = isset($options['sentences']) ? $options['sentences'] : rand(1, 10);
    $author = isset($options['author']) ? $options['author'] : array_rand(self::$authors, 1);
    $path = __DIR__ . '/data/' . $author . '.txt';
    if (file_exists($path)) {
      $text = file_get_contents($path);
      $chars_in_text = strlen($text);
      $length = 10000;
      $start = rand(0, $chars_in_text - $length);
      $subsection = substr($text, $start, $length);
      return self::getSentences($subsection, $sentencesToDisplay);
    }
  }