John Cheung
John Cheung
updated list with desire tags(empty array indicates tags to be confirmed, words from ginger software included) ``` const IRREG_PAST_PART_IN_DICT = {"arose":["vbd"],"awoke":["vbd"],"beat":["vbd"],"became":["vbd"],"began":["vbd"],"bent":["vbd","vbn"],"bet":["vbd","vbn"],"bound":["vbd","vbn"],"bit":["vbd"],"bled":["vbd"],"blew":["vbd"],"broke":["vbd"],"bred":["vbd","vbn"],"brought":["vbd","vbn"],"broadcast":["vbd","vbn"],"built":["vbd","vbn"],"burst":["vbd","vbn"],"bought":["vbd","vbn"],"caught":["vbd","vbn"],"chose":["vbd"],"clung":["vbd","vbn"],"came":["vbd"],"crept":["vbd","vbn"],"cut":["vbd","vbn"],"dealt":["vbd","vbn"],"dug":["vbd","vbn"],"did":["vbd"],"drew":["vbd"],"dreamt":["vbd","vbn"],"drank":["vbd"],"drove":["vbd"],"ate":["vbd"],"fell":["vbd"],"fed":["vbd"],"felt":["vbd","vbn"],"fought":["vbd","vbn"],"found":["vbd","vbn"],"flew":["vbd"],"forbade":["vbd"],"forgot":["vbd"],"forgave":["vbd"],"froze":["vbd"],"got":["vbd"],"gave":["vbd"],"went":["vbd"],"ground":["vbd","vbn"],"grew":["vbd"],"hung":["vbd","vbn"],"had":["vbd","vbd","vbn"],"hid":["vbd"],"hit":["vbd","vbn"],"held":["vbd","vbn"],"hurt":["vbd","vbn"],"kept":["vbd","vbn"],"knelt":["vbd","vbn"],"knew":["vbd"],"laid":["vbd","vbn"],"led":["vbd","vbn"],"left":["vbd","vbn"],"lent":["vbd","vbn"],"lay":["vbd"],"lit":["vbd","vbn"],"lost":["vbd","vbn"],"made":["vbd","vbn"],"meant":["vbd","vbn"],"met":["vbd","vbn"],"overtook":["vbd"],"paid":["vbd","vbn"],"put":["vbd","vbn"],"read":["vbd","vbn"],"rode":["vbd"],"rang":["vbd"],"rose":["vbd"],"ran":["vbd"],"said":["vbd","vbn"],"saw":["vbd"],"sold":["vbd","vbn"],"sent":["vbd","vbn"],"set":["vbd","vbn"],"shook":["vbd"],"shed":["vbd","vbn"],"shone":["vbd","vbn"],"shot":["vbd","vbn"],"shrank":["vbd"],"shut":["vbd","vbn"],"sang":["vbd"],"sank":["vbd"],"sat":["vbd","vbn"],"slept":["vbd","vbn"],"slid":["vbd","vbn"],"spoke":["vbd"],"spent":["vbd","vbn"],"spat":["vbd"],"spread":["vbd","vbn"],"stood":["vbd","vbn"],"stole":["vbd"],"stuck":["vbd","vbn"],"stung":["vbd","vbn"],"struck":["vbd","vbn"],"swore":["vbd"],"swept":["vbd","vbn"],"swelled":["vbd"],"swam":["vbd"],"swung":["vbd","vbn"],"took":["vbd"],"taught":["vbd","vbn"],"tore":["vbd"],"told":["vbd","vbn"],"thought":["vbd","vbn"],"threw":["vbd"],"understood":["vbd","vbn"],"woke":["vbd"],"wore":["vbd"],"wept":["vbd","vbn"],"won":["vbd","vbn"],"wound":["vbd","vbn"],"wrote":["vbd"],"arisen":["vbn"],"beaten":["vbn"],"become":["vbn"],"begun":["vbn"],"bitten":["vbn"],"blown":["vbn"],"broken":["vbn"],"chosen":["vbn"],"come":["vbn"],"done":["vbn"],"drawn":["vbn"],"drunk":["vbn"],"driven":["vbn"],"eaten":["vbn"],"fallen":["vbn"],"flown":["vbn"],"forbidden":["vbn"],"forgotten":["vbn"],"forgiven":["vbn"],"frozen":["vbn"],"given":["vbn"],"gone":["vbn"],"grown":["vbn"],"hidden":["vbn"],"known":["vbn"],"lain":["vbn"],"overtaken":["vbn"],"ridden":["vbn"],"rung":["vbn"],"risen":["vbn"],"run":["vbn"],"seen":["vbn"],"sewn":["vbn"],"shaken":["vbn"],"shown":["vbn"],"shrunk":["vbn"],"sung":["vbn"],"sunk":["vbn"],"sown":["vbn"],"spoken":["vbn"],"stolen":["vbn"],"sworn":["vbn"],"swollen":["vbn"],"swum":["vbn"],"taken":["vbn"],"torn":["vbn"],"thrown":["vbn"],"woken":["vbn"],"worn":["vbn"],"written":["vbn"],"been":[],"bid":[],"born":[],"clad":[],"dove":[],"dwelt":[],"fled":[],"flung":[],"slain":[],"sought":[],"sped":[],"split":[],"sprung":[],"spun":[],"stunk":[],"undergone":[]}; const IRREG_PAST_PART_NOT_IN_DICT = {"bore":["vbd"],"could":["vbd"],"cost":["vbd","vbn"],"heard":["vbd","vbn"],"leant":["vbd","vbn"],"learnt":["vbd","vbn"],"lied":["vbd","vbn"],"might":["vbd"],"mown":["vbd"],"sawn":["vbn"],"sewed":["vbd"],"should":["vbd"],"showed":["vbd"],"smelt":["vbd","vbn"],"sowed":["vbd"],"spelt":["vbd","vbn"],"spilt":["vbd","vbn"],"stank":["vbd"],"would":["vbd"],"awoken":["vbn"],"borne":["vbn"],"bled":["vbn"],"fed":["vbn"],"got":["vbn"],"mown":["vbn"],"to":["vbn"],"sawn":["vbn"],"spat":["vbn"],"stunk":["vbn"],"bidden":["vbn"],"pled":["vbd"],"relaid":["vbd"],"wrung":["vbd", "vbn"]}; ``` I will check...
should be finished now
hmm not sure if this is the best way but I did this: `RiTa.hasWord(word)` will call `RiTa.lexicon().hasWord(word, true, false)` which now take three parameters: `word, fatal, strict`, `strict` is newly...
maybe we can do something like this https://github.com/dhowe/ritajs/blob/141ad6c6f2cf454e79c5fed023deddd1593014ba/src/conjugator.js#L208 for `isStem()` too...
@dhowe not sure if I get the idea correctly... So now we have `hasWord()` that returns `true` when the base form of the input is in the dictionary and `isStem()`...
> RiTa.pastPart(RiTa.stem("changed")) => chung for now `RiTa.pastPart()` will directly call `conjugator.pastPart()`, which directly applies rules to the input I think a simple solution will be direct `RiTa.pastPart()`and those similar APIs...
@dhowe I am not sure if we should implant the code I mentioned above > ``` static pastPart(word) { return this.conjugate(word,{ number: RiTa.PLURAL, person: RiTa.SECOND, tense: RiTa.PAST }); } ```...
@dhowe I think it works similarly to CodeMirror, maybe needs 2-3hours
> lets also try to use it in the editor, so that we only have to update one place I am afraid that it might not be possible since how...
status: now we have a repo for riscript mode [here](https://github.com/highlightjs/highlightjs-riscript) that works, but the auto detection is not ready yet. it is also in the supported languages list of highlightjs...