Enumerationswift 6.0.3Foundation
PartOfSpeech
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
enum PartOfSpeech
enum PartOfSpeech
import Foundation
struct Morphology
case abbreviation
case adjective
case adposition
case adverb
case conjunction
case determiner
case interjection
case letter
case noun
case numeral
case particle
case preposition
case pronoun
case verb
init()
init(from decoder: any Decoder) throws
var grammaticalGender: Morphology.GrammaticalGender?
var number: Morphology.GrammaticalNumber?
var partOfSpeech: Morphology.PartOfSpeech?
func customPronoun(forLanguage language: String) -> Morphology.CustomPronoun?
func encode(to encoder: any Encoder) throws
mutating func setCustomPronoun(_ pronoun: Morphology.CustomPronoun?, forLanguage language: String) throws
struct CustomPronoun
enum GrammaticalGender
enum GrammaticalNumber
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init(from decoder: any Decoder) throws
init?(rawValue: Int)
func encode(to encoder: any Encoder) throws
init(from decoder: any Decoder) throws
Creates a new instance by decoding from the given decoder, when the type’s RawValue
is Int
.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)