Oxford Dictionaries TypesScript Client
- [src/types/odmodel_to_ts.rb] script to convert the human-readable schema
- [src/types/gen] typings generated from the human-readable schema
Component | Source | License | Notes |
---|---|---|---|
words.odmodel | model extracted from Oxford Dictionary’s API documentation | Oxford Dictionaries API Terms and Conditions | To find the schemas, select GET /words > Successful Response > Model (not Example Value) |
bad-words.txt | Luis von Ahn's Research Group at CMU | unspecified |
- "undefined" tag not removed when refresh finds definition
- missing pronunciations for cross-referenced origins
- scoring (e.g. crapper) so between two pass-3 options, one with no pass-2 tags preferred over one with a pass-2 tag
- sense tags should not cascade to subsenses (e.g. addict has
narcotics
in sense but then "an enthusiastic devotee of a specified thing or activity" as a subsense) - shouldn't reject as inexact pluralizations (e.g. asses -> ass)
- should deal with untagged plurals (e.g. gis -> gi)
- investigate
medicine
/anatomy
(abortion, oral) - "other"
lexicalCategory
(e.g. geez -> jeez) - deal with multiple discouraged tags vs. single "buggered" -> "bugger"
- checkmark should record final value and alert if tag change would change result
Suite of ops for bidirectional set membership / tagging:
-
BSADD set-key member // tag member
- SADD set-key member
- SADD reverse:set:member set-key
-
BSREM set-key member // tag member
- SREM set-key member
- SREM reverse:set:member set-key
-
BHSET hash-key member value // tag member
- HSET hash-key member value
- HSET reverse:hash:member hash-key value
-
BHDEL hash-key member
- HDEL hash-key member
- HDEL reverse:hash:member hash-key