Closed craigp-atw closed 4 months ago
Latest commit: |
703fca5
|
Status: | ✅ Deploy successful! |
Preview URL: | https://25cf75d5.tabitha-editor.pages.dev |
Branch Preview URL: | https://add-case-frame-rules.tabitha-editor.pages.dev |
Note: For some reason the test suites don't like the use of Object.entries(). I couldn't figure it out, so those tests don't work for me. But running the app works perfectly fine so not sure what the problem is.
I'll pull it locally and see if I can offer anything.
It's not the Object.entries
that has a problem, the parse_case_frame_rule
function is actually undefined
in your tests... which would explain why it works at runtime. This is perhaps the result of your for_test()
calls not constructing your rules and parser the same way as when it's done at runtime, does that trigger anything for you as a possibility?
It's not the
Object.entries
that has a problem, theparse_case_frame_rule
function is actuallyundefined
in your tests... which would explain why it works at runtime. This is perhaps the result of yourfor_test()
calls not constructing your rules and parser the same way as when it's done at runtime, does that trigger anything for you as a possibility?
I think it has something to do with how the case_frame stuff was imported, due to it being in a nested folder with an index.js?
edit: it was a cyclical import issue, moved some parts of common.js
to a new rules.js
file
Add case frame and sense-selection rules, and other supporting rules such as part-of-speech. Added rules for allow/be/give/have/hear/know/say/see/speak/tell. These check the arguments present for each sense, store the missing and extra arguments, and shows appropriate messages to the user to help them find the right sense or argument structure. Support for more verbs will follow but this is a good start.
Automatic sense selection based on case frame
Automatic sense selected based on case frame and semantic keywords![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/e57c8b4d-a158-424d-8342-283f838dfcfa)
Guide user to specify a sense if no sense matches![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/962df552-95ad-4500-83e7-46114b80287a)
Notification of missing arguments
![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/8204ef77-23f1-4e7b-b19e-7cd8adf31dbe)
Notification of unexpected/extra arguments![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/bcd887fc-65ec-4158-b0fc-02f0c1261477)
Warn about wrong clause type
![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/e4bc1424-2777-4c36-b648-acdcb8bcaa52)
Support for passive clauses![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/977eb39d-60d0-42b4-a358-2bfb3f02642c)
Warn about extraneous or misinterpreted 'that's
![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/b681ea62-cc8a-4950-99d9-7093abb906a5)
Handle agent clauses (and show error for misused 'it')![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/55e48dfe-e23c-4136-a2c4-3bcfb8ef7790)
Fixed a couple of issues that Richard/Jeremiah found
'chief' in 'chief evil spirit' was not considered an adjective
Now it remains ambiguous, just like it is in the Analyzer![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/dde7e85d-4099-4346-9cba-c8c47a3d11e1)
'like' is now also recognized as the 'just-like' adposition, so it's not always considered a verb and falsely triggering rules. Adding case frames for become/seem/sound/etc will fully address this like it did for 'be'![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/f7466ccf-20a1-4dc6-bf22-0b265c91b8ea)
Made not using 'all of' as an error instead of suggestion, and fixed capitalization issue![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/11f142f2-39eb-40c5-a9fe-3d31fa5f4481)
Adverbial clauses with a conjunction no longer trigger an error![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/438630d6-bd07-45a8-a868-6fa8572f86ef)
Note: For some reason the test suites don't like the use of![image](https://github.com/presciencelabs/tabitha-editor/assets/152427351/f7601127-e5c5-4ac0-a591-b3fed3d68ecc)
Object.entries()
. I couldn't figure it out, so those tests don't work for me. But running the app works perfectly fine so not sure what the problem is.