mistval / kotoba Goto Github PK
View Code? Open in Web Editor NEWA Discord bot for helping with learning Japanese.
License: MIT License
A Discord bot for helping with learning Japanese.
License: MIT License
User suggestion:
idea for a command: repeat the last command
would be useful for repeating multi-deck quizes for example(編集済)
without the need to either type everything again or scroll up in history to find the command and copypaste it
With an embed and stuff.
Seen once in error log, specific conditions unknown:
embed.fields.1.value: This field is required
Stack: DiscordRESTError [50035]: Invalid Form Body
embed.fields.1.value: This field is required
User suggestion. Pretty ambitious but would be cool, Would need to consider how to use this feedback and at what scope (user, server, global, etc)
No createTitleOnlyEmbed() in examples_content_creator.js. Most likely only a problem when Jisho request times out.
User suggestion
User suggestion
User suggestion.
User wants to know what kind of quiz they're looking at.
This is possible for single deck Japanese quizzes but not for multi deck ones or English quizzes.
User suggestion. Would first need to evaluate whether this would infringe on someone's copyright (it probably would, but not sure)
Also, subtract points for rule violations
There's enough of them now and Kotoba is nearly at the top of the quiz leaderboard. Not fair, lol.
Wanikani has an API. Would be cool.
https://community.wanikani.com/t/api-v2-alpha-documentation/18987
Some of the quiz deck files are very large. Should compress them.
User suggestion
User suggestion: user wants a rendered image of the search query attached to the results.
Gut feeling is that it probably won't work as a thumbnail due to the thumbnail shrinking the width available to results.
It could work as a command button, but this would require a web server to serve the images, and is of questionable utility.
Let's leave it be for now until another user suggests a similar/same thing.
TypeError: Cannot read property '279811287729307649' of undefined
Stack: TypeError: Cannot read property '279811287729307649' of undefined
at createFieldForUsedWord (/home/xxx/commands/shiritori.js:50:43)
at createFieldsForTookTurnEmbed (/home/xxx/commands/shiritori.js:62:17)
at DiscordClientDelegate.playerTookTurn (/home/xxx/commands/shiritori.js:244:17)
at tryShowCurrentState (/home/xxx/kotoba/shiritori/shiritori_manager.js:159:25)
at promise.catch.then.then (/home/xxx/kotoba/shiritori/shiritori_manager.js:214:14)
at
User suggestion.
Looks like there's a good source of pitch accents here:
https://github.com/javdejong/nhk-pronunciation
Word on the street is that the Anki deck may have more entries:
Some innovative fellows are using Forvo https://forvo.com/ to get word pronunciations. That would be good to have in Kotoba too.
This is a good first feature because it is almost entirely independent from the rest of the codebase. You can create a command file in the commands directory and write whatever code you need in there. The command file will be loaded automatically by the bot framework, as long as it's present in the command directory.
There's an API for Forvo: https://api.forvo.com/
The API key should be stored in kotoba/api_keys.js
Some dictionary entries have example sentences, like this one: http://jisho.org/word/%E6%88%90%E3%82%8B
One user wants to see those.
Could augment the example search with that.
User suggestion
User suggestion:
Regarding the jisho look-up though, would be possible to make a like mini version of that command that doesn't present as large a wall of text? Maybe one that just shows the kana and definition for the word searched, without the additional list of words that contain that kanji too. One of our users is cleverly using the command in our shiritori game channel (because it's encouraged to provide kana and the definition of your word so people can learn new words), and it's actually quite the brilliant implementation of the command. Would be absolutely perfect if it could be condensed to 2-3 lines, so as to not clutter the channel.
User request:
can you add some sort of reverse kanji search? like using a keyword and it gives you the kanji that has that keyword as one of its meanings
User suggestion. User wants to know how frequently Japanese words are used. Could somehow work it into the dictionary command, or make a new command.
It's a scraper and Weblio is a pain to scrape so it will never be perfect.
I'm going to maintain a list of words that it does poorly on here, and hopefully make it work better for some.
禿同
参加
同族嫌悪
Just a suggestion. Here's my user story:
I would like to avoid losing review questions like this due to failing review quizzes.
Some suggested workarounds:
They probably changed their DOM :/
The quiz feature has sort of outgrown its settings to the point where there are certain decks, game modes, etc that just ignore the settings. Users are starting to notice this.
http://yourei.jp has more example sentences than Jisho (though no English translations). Would be nice for advanced learners.
User suggestion. Shy iiko wants this :)
User: "one suggestion we were talking about was a random word generator.. like type in random and it can display a random word and definition. does the k!j already do this or do you always have to search for a specific word before it displays something from the dictionary ?"
It would be nice to have an anime search command, but I'm unlikely to do it myself as long as there are improvements to be made that are more helpful for learning. But this would be great for someone else who wants to contribute, because it would have little coupling with the existing codebase, and is pretty straightforward to implement.
There seem to be three available APIs. Each should be evaluated for suitability: http://taiga.moe/api.html
User request
user suggestion
also: need to save scores correctly for multi deck quizzes
User: "how about a shiritori feature? just counting points, converting kana to kanji and not allowing double answers or ending with ん"
Suggested by user
For example, k!lb 1k-mc should work.
User request
From a user:
"
Every time a question goes unanswered, the time limit to answer a question goes down an increment. If the limit of unanswered questions is reached before the score limit, it's the bot that conceptually "wins" the game and all points earned by contestants in that game are revoked/stolen by the bot (maybe even give the bot a score in the leaderboard). If players are on their "last life," they can choose to manually end the quiz and be safe from losing their points.
"
User suggested
Would be nice, however this would require scraping Jisho's example pages before the user ever goes to examples.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.