Compromise: conjugation fixes

Created on 22 May 2017  路  10Comments  路  Source: spencermountain/compromise

hi
when i conjugate 'dies':
var conjugate = nlp('dies').verbs().conjugate()[0];
i got:
{PastTense: "died", PresentTense: "dies", Infinitive: "dy", FutureTense:"will dy", ...}
how can i fix it?

bug good-first-bug

All 10 comments

also for 'lied' i got Infinitive: "ly"
lied => ly
shed => sh
owed => ow
aged => ag
aced => ac
axed => ax
egged => eg
vied => vy
ared => ar
sked => sk
fied => fy
aked => ak

but it's ok for "tied => tie"

hey Sajjad, thanks! that's a good find.
i'll take a look at this today
cheers

oh wow, this is an incredibly useful list.
almost got it fixed
thanks for doing this.

Thanks Spencer,
all are fixed. awesome ...

hey, just published v10.4.0, which has a couple more edge-cases I found digging-though your examples
cheers

seems there are some other issues. conjugate of 'coming':

{  
   "PastTense":"commed",
   "PresentTense":"coms",
   "Infinitive":"com",
   "Gerund":"coming",
   "Actor":"commer",
   "FutureTense":"will com"
}

and also:

coming => com
moving => mov
joking => jok
poking => pok
naming => nam
aching => ach
tuning => tun
bling => ble
hazing => haz
oozing => ooz
gazing => gaz
easing => eas
dozing => doz
raring => rar
honing => hon
gluing => glu
fuming => fum
baling => bal
muling => mul
lazing => laz
juking => juk
zigging => zig
razing => raz
rewing => rew
...

conjugate of planned:
{PastTense: "planned", PresentTense: "plannes", Infinitive: "planne", 鈥

hey @sajjad-shirazy , I haven't gotten around to fixing these examples yet, but as of v11, there's now support in the api for defining custom conjugations, which may help you out in the mean-time.
https://runkit.com/spencermountain/59f34c4fce71dc00133b8eee
cheers

holy, this is a really useful list. Going through some more for 12.3.0
thanks again.

think I got em all, let me know if you see any others
thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Xetanai picture Xetanai  路  4Comments

nelson-liu picture nelson-liu  路  3Comments

josephrocca picture josephrocca  路  6Comments

struesdell picture struesdell  路  3Comments

charles-toller picture charles-toller  路  3Comments