// // ReadabilityScorer.swift // Readability // // Created by Shibo Lyu on 2022/5/19. // import Foundation import SwiftUI public struct RAScorerMeta { public let name: String public let creator: String /** Should be in APA format. */ public let citation: String } public protocol RAScorer { static var meta: RAScorerMeta { get } static var requiresCommonMetrics: Set? { get } init() func score(_ text: String, metrics: RACommonMetricsCalculator.Results?) -> Double }