presciencelabs / tabitha-targets

0 stars 0 forks source link

Create inflections API #5

Closed craigp-atw closed 3 months ago

craigp-atw commented 5 months ago

Inspired from https://github.com/presciencelabs/tabitha-ontology/issues/35 . See below for some examples and specification.

To be done after #4 .

craigp-atw commented 5 months ago

target.tbta.bible/English/lookup/form?word=following

[
 {
  stem: following
  part_of_speech: Adjective
  form: Stem
 },
 {
  stem: follow
  part_of_speech: Verb
  form: Participle
 },
]

target.tbta.bible/English/lookup/form?word=follow*

[
 {
  stem: following
  part_of_speech: Adjective
  form: Stem
 },
 {
  stem: follower
  part_of_speech: Noun
  form: Stem
 },
 {
  stem: follow
  part_of_speech: Verb
  form: Past
 },
 {
  stem: follow
  part_of_speech: Verb
  form: Participle
 },
 {
  stem: follow
  part_of_speech: Verb
  form: Stem
 },
]

target.tbta.bible/English/lookup/form?word=accused

[
 {
  stem: accuse
  part_of_speech: Verb
  form: Past
 },
 {
  stem: accuse
  part_of_speech: Verb
  form: Perfect
 },
]

target.tbta.bible/English/lookup/form?word=tol*

[
 {
  stem: tell
  part_of_speech: Verb
  form: Past
 },
 {
  stem: tell
  part_of_speech: Verb
  form: Perfect
 },
 {
  stem: Tola
  part_of_speech: Noun
  form: Stem
 },
]

target.tbta.bible/English/lookup/form?word=got

[
 {
  stem: get
  part_of_speech: Verb
  form: Past
 },
 {
  stem: get off
  part_of_speech: Verb
  form: Past
 },
 {
  stem: get up
  part_of_speech: Verb
  form: Past
 },
 {
  stem: get on
  part_of_speech: Verb
  form: Past
 },
]