Commit graph

7 commits

Author SHA1 Message Date
Vincent Ambo
a6e538b8bb fix(predlozhnik): нет -> только родительный падеж
Change-Id: I4ce6e6db474529a29823d1dc324ab86c5e351c0c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5985
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
5134a4809f feat(predlozhnik): wire up the actual предлог/вопрос matching
with this commit the application is sort of functional-ish as
intended.

users can select either cases or prepositions, have the remaining
choices appropriately constrained, and get the right question (i.e.
case) matching when selecting both.

there should be some explanatory translations and it needs to be
prettier, but this kind of does what I wanted.

Change-Id: If5bdaa7f93235dc267bf38cf13c2029f44d68415
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5984
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
134efdab25 feat(predlozhnik): implement fever-dream like case selection
don't look too closely at this, it's kind of insane

Change-Id: I789ddd9dd5a4cf28b3007e38ef1c345e639a5fc1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5983
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
67b7668e85 refactor(predlozhnik): use BTreeSet's for the ... sets
The stable ordering guarantee will make the output a lot nicer (and
more stable).

Change-Id: I7edd1abb0805e948bc41fe5bc111b3cb54592aac
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5982
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
7b217bbbe1 feat(tazjin/predlozhnik): implement logic to restrict inputs
Change-Id: I3e5a5ba02b5f9fcaeeddb499e243ad3b55cf3d82
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5981
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
d795a05c07 feat(tazjin/predlozhnik): bootstrap yew/wasm-based web UI
this commit is mostly to figure out hwo to build a yew application in
depot using the wasm toolchain. it's a bit finnicky, but could be a
lot worse.

Change-Id: I7804a774f1686a1f308ae1a3f549cd0ae7b5dbeb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5980
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
7bfc859bfc feat(tazjin/predlozhnik): check in initial list of предлоги
Change-Id: I3bc4f46964e50c8748306e579126be0192a89284
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5978
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00