-
Notifications
You must be signed in to change notification settings - Fork 0
/
labels.go
37 lines (31 loc) · 1.41 KB
/
labels.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package types
// WithFunctionalLabel is a compositing type for parsing the `fl` property
type WithFunctionalLabel struct {
// https://dictionaryapi.com/products/json#sec-2.fl
Function string `json:"fl,omitempty"`
}
// WithGeneralLabels is a compositing type for parsing the `lbs` property
type WithGeneralLabels struct {
// https://dictionaryapi.com/products/json#sec-2.lbs
Labels []string `json:"lbs,omitempty"`
}
// WithSubjectStatusLabels is a compositing type for parsing the `sls` property
type WithSubjectStatusLabels struct {
// https://dictionaryapi.com/products/json#sec-2.sls
SubjectStatusLabels []string `json:"sls,omitempty"`
}
// WithParenthesizedSubjectStatusLabel is a compositing type for parsing the `psl` property
type WithParenthesizedSubjectStatusLabel struct {
// https://dictionaryapi.com/products/json#sec-2.psl
ParenthesizedSubjectStatusLabel string `json:"psl,omitempty"`
}
// WithSenseSpecificInflectionPluralLabel is a compositing type for parsing the `spl` property
type WithSenseSpecificInflectionPluralLabel struct {
// https://dictionaryapi.com/products/json#sec-2.spl
SenseSpecificInflectionPluralLabel string `json:"spl,omitempty"`
}
// WithSenseSpecificGrammaticalLabel is a compositing type for parsing the `sgram` property
type WithSenseSpecificGrammaticalLabel struct {
// https://dictionaryapi.com/products/json#sec-2.sgram
SenseSpecificGrammaticalLabel string `json:"sgram,omitempty"`
}