     let index = Int(arc4random_uniform(UInt32(SentanceStructures.structures.count)))
     let structure = SentanceStructures.structures[index]
     for type in structure {
-      let word = getWord(word: type)
+      let word = getWord(type: type)
       count += 1
       fitness += word.1
       if type == .grapheme {

    var highestFitness = 0.0
    
    for _ in 1...20 {
      let potentialTweet = constructSentence(sentence: "", fitness: 0.0, count: 0.0, isConnective: false)
      if potentialTweet.1 > highestFitness {
        highestFitness = potentialTweet.1
        tweet = potentialTweet.0
      }
    }
    print(tweet)
    return tweet
  }

  private func constructSentence(sentence: String, fitness: Double, count: Double, isConnective: Bool) -> (String, Double) {

    var sentence = sentence
    var count = count

      let randomNumber = Int(arc4random_uniform(UInt32(KnowledgeBase.connective.count)))
      sentence.append(KnowledgeBase.connective[randomNumber].0)
      fitness += KnowledgeBase.connective[randomNumber].1
      return(construct(sentence: sentence, fitness: fitness/count, count: count, isConnective: true))
    }
    let fitnessValue = fitness / count
    return (sentence, fitnessValue)
  }
  
  private func getWord(type: WordType) -> (String, Double) {
    
    var array: [(String, Double)]
    
    switch type {
    case .noun:
      array = KnowledgeBase.nouns
    case .person:
