   /// - 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 {
+  public func occurrences(
+    of word: String,
+    caseSensitive: Bool = false
+  ) -> Int {
     let word = (caseSensitive) ? word : word.lowercased()
     return _wordOccurrences(caseSensitive: caseSensitive)[word] ?? 0
   }

  /// - Parameter caseSensitive: Indicating if words
  /// should be counted regardless of their case sensitivity.
  /// Defaults to `false`.
  public func occurrences(of character: Character, caseSensitive: Bool = false) -> Int {
    let character = (caseSensitive) ? character : character.lowercased()
    return characters
      .map { (caseSensitive) ? $0 : $0.lowercased() }

  /// Defaults to `true`.
  ///
  /// - Returns: A percentage based on the `characterCount()`.
  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
  }
  
