   /// Defaults to `true`.
   ///
   /// - Returns: A percentage based on the `characterCount()`.
-  public func frequency(of character: Character, caseSensitive: Bool = false, includingSpaces: Bool = true) -> Percentage {
+  public func frequency(
+    of character: Character,
+    caseSensitive: Bool = false,
+    includingSpaces: Bool = true
+  ) -> Percentage {
     return Double(occurrences(of: character, caseSensitive: caseSensitive)) / Double(characterCount(includingSpaces: includingSpaces)) * 100.0
   }
   

  /// - Parameter caseSensitive: Indicating if words
  /// should be counted regardless of their case sensitivity.
  /// Defaults to `false`.
  public func occurrences(of word: String, caseSensitive: Bool = false) -> Int {
    let word = (caseSensitive) ? word : word.lowercased()
    return _wordOccurrences(caseSensitive: caseSensitive)[word] ?? 0
  }

import Foundation

/// An analysis of a `String`.
public struct Analysis {

  /// The option to use when calculating average length.
  /// This is either `.word` or `.sentence`.
  public enum LengthOption {
    case word
    case sentence
  }

  /// A typealias of `Double`.
  public typealias Percentage = Double

  /// A typealias of `Double`.
  public typealias Grade = Double
  
  /// The string used to construct the `Analysis`.
