ModifiableLinguisticVariable

public struct ModifiableLinguisticVariable<TermName, Term, TermModifierName> : LinguisticVariable where TermName : Hashable, Term : FuzzySetOperations, TermModifierName : Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public typealias TermModifier = (Grade) -> Grade
  • Undocumented

    Declaration

    Swift

    public init(
        baseTerms: [TermName: Term],
        termModifiers: [TermModifierName: TermModifier] = [:]
    )
  • Undocumented

    Declaration

    Swift

    public func term(_ name: TermName) -> Term?
  • Undocumented

    Declaration

    Swift

    public subscript(termName: TermName, applyModifier modifierName: TermModifierName) -> Term? { get }
  • Undocumented

    Declaration

    Swift

    public func applyModifier(_ modifierName: TermModifierName, to termName: TermName) -> Term?
  • Undocumented

    Declaration

    Swift

    public func applyModifier(_ modifierName: TermModifierName, to term: Term) -> Term?