 	}
 
 	func Naivebayes(_ options: Dictionary<String, String>) {
-
 		if options.count == 0 {
 			print("error no options")
 		}

	func tokenProbability(_ token: String, category: String) -> Float {
		var wordFrequencyCount: Int!
		if let test = self.wordFrequencyCount[category]![token] {
			print(test)
		}
		if self.wordFrequencyCount[category]![token] != nil {
			wordFrequencyCount = self.wordFrequencyCount[category]![token]!

			for (token, _) in _frequencyTable {
				let frequencyInText: Float = Float(_frequencyTable[token]!)
				let tokenProbability: Float = self.tokenProbability(token, category: item)
				logProbability = logProbability + (frequencyInText * log(tokenProbability))
			}

			if logProbability > maxProbability {
				maxProbability = logProbability
				chosenCategory = item
