Coder Social home page Coder Social logo

blmage / duolingo-solution-viewer Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 9.0 5.57 MB

A browser extension providing access to the lists of solutions to the translation / listening challenges on Duolingo, and restoring the correction of typos for listening challenges.

License: MIT License

JavaScript 100.00%
answers challenges chrome-extension corrections duolingo firefox-addon solutions translation typos

duolingo-solution-viewer's People

Contributors

blmage avatar dependabot-preview[bot] avatar dependabot[bot] avatar fossabot avatar hanyu222 avatar marlonpassos-git avatar ruvn-1fgas avatar suoxons avatar unickq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

duolingo-solution-viewer's Issues

Bug: typing 'f' interrupts writing a comment by focusing on the filter

Steps to reproduce:

  1. Go to the sentence discussion of some sentence with the extension enabled
  2. Expand the 'Solutions' section
  3. Scroll down and start to create a comment/reply, typing a word containing the letter 'f'

Expected result:
You should be able to type your comment, without the filter taking focus away when you're focused on a text box.

Actual result:
When you press 'f', it switches your focus to the filter and scrolls you to the top of the page. Now you have to scroll back down to the comment you were writing and click on the text box again to re-focus it in order to continue, which is jarring and is especially troublesome if you were replying to a comment way down the page.

As a workaround you can close the 'Solutions' section which stops the 'f' hotkey from having an effect.

Bug: Some sentences display wrong language in solutions during lessons only

I have not determined what causes this, but in rare cases, some sentences are displaying the incorrect language solutions when encountered in lessons, but not when clicking the discussion link from that lesson. Example image of the bug below:

image

However, if the Discuss link is clicked, you go to this page which correctly lists the 33 English solutions instead of the two Japanese solutions.

If I figure out anything more about the cause of this bug I will add to this issue.

Make the addon available for Firefox on mobile

When opening the Firefox addon page on Android a message is shown that the addon is not available on Firefox for Android.

After requesting Desktop Site the addon can be installed and it works well for the mobile version of Duolingo. So maybe it is just a small change to make it available for installation on Firefox on mobile?

Issue/Bug - Duolingo-Solution-Viewer doesn't except "i" as replacement for "i̇".

This is a curious thing...
So sometimes when there are sentences with "i" in the correct answer in the Turkish Duolingo-course, the add-on counts it as incorrect character and displays the same sentence with "i"s with weird shifted dots as correct solution (picture below).
Apparently the "i" used by me is different than the "i̇" used for the answers written by the Duolingo Turkish staff. I suppose that the letter might be composed differently here software wise, because in Turkish "i"s with and without dots are different vowels.
This might be the code behind it: https://stackoverflow.com/questions/25995451/why-i-is-not-equals-to-i%CC%87
The weird floating dot that the solution viewer displays seems to be "Unicode Character 'COMBINING DOT ABOVE' (U+0307)".

So it seems like technically there are not one but two small issues:

  1. the solution fewer doesn't convert the "i̇" made with i+floating dot to a single letter, or at least does not display it as such and
  2. it does not, as it should, see "i" as equal alternative to "i̇" (which would be the desired behaviour, because then the solution viewer would not have to display the whole "corrected answer"-section in such instances)

I know that's not a huge deal, but I would appreciate a fix nonetheless.
Either way, thanks for this great add-on!

Screenshot_20210222-222728~2

Bug: the extension is working inconsistently (and other suggestions)

FYI : 1) There is no sorting in En -> Es course with Crome . This happens for sentences with word bank
Screen Shot 2020-05-24 at 22 23 23
2) please add icon, as in mobile (web view) it is not possible to access solutions
Screen Shot 2020-05-24 at 22 24 42
Screen Shot 2020-05-24 at 22 24 01

  1. Make a pop-up wider and / or give an option to open it in a new page
    and / or add option to see possible solutions on the corresponding discussion pages in the forum

  2. user answer is not shown

  3. Add a hot key to open/ show solution for example cntrl (or shift) + S

  4. Extension does not work with practice type exercises ( timed and not timed ) for Level 5 skills practice / restore or lower level skills with direct links from Duome or with DuoStength extension. Same for general practice

  5. same for checkpoint skills test out i.e. bigtest

  6. Is it possible to sort by most popular solution / translation / answer ?

Idea: regroup solutions by similarity score ranges and display only the most relevant solutions at first

Those ranges could be given names, such as "very similar" or "completely different".

Only display a subset of solutions at first (as far as possible, the most relevant/different from each other, taking or not word order into account etc. - we may want to reuse the options mentioned in #2, but in another options field?), but also allow viewing all of them (per group and/or globally?).

Update counts and pagination in the modal when more or less solutions are visible.

Have anchors at the top pointing to each group.

Do as little work as possible upfront, instead wait for user input. Do not hide everything when waiting for a result from the background script.

Regrouping should only be an option. When not regrouping, we may implement filters in place of anchors (by similarity group and relevance).

Feature: Keyboard shortcut for opening discussion page

A keyboard shortcut being added to open the discussion page (in a new tab, just like clicking the vanilla link) would be helpful. I always want to check the discussion page on a new sentence, mousing to the tiny link is annoying, and the keyboard shortcuts like those provided to interact with the solutions are much more convenient and would be a welcome addition.

Russian е & ё

In Russian it is OK & acceptable to type е instead of ё, However the reverse is not true and is an error. Few words aside (небо-нёбо, все-всё, ...) the substitute only affects pronunciation & writing esthetics, but not the meaning. Is it possible to stop marking e as an error / typo and NOT to suggest the usage of ё ? Thanks
Screen Shot 2021-04-06 at 09 49 48

Bug: Solution filters do not work with Japanese sentences

When viewing solutions for a Japanese sentence, attempting to add a "Present" filter whatsoever always results in no hits, regardless of word-position mode. (I have not checked Chinese to see if it exhibits the same behavior, but this seems likely.)

Obviously Japanese characters present a challenge to the filter feature, especially given the difficulty in determining the concept of a "word" with the Japanese data in the first place. But any functionality would be a great benefit, as due to the way the Japanese course is programmed, solution sets of hundreds or thousands of results are common. Having a working filter would be extremely helpful.

Additionally, a cursory glance at the code for the filter functionality shows it currently intentionally prevents filter items of length 1; having length-1 filters would be useful, however, for Japanese and similar languages.

Feature: implement a popup with options and other informations (superset of #25)

Some features worth considering (see #25 for options):

  • provide a summary of the current practice session (all the listening / translation challenges encountered so far with their statements, results, and lists of solutions)
  • provide a link to the options page
  • provide a link to a debugging page (containing the logs for the current session)
  • anything else?

The new filter feature blocks Google Chrome find feature

I can no longer use the Google Chrome "find" (ctrl-f) to search and highlight words and phrases on the solution popup because the new "filter" feature traps the first word I type and does its thing. There is no highlighting of the word and I cannot enter a phrase. This seriously degrades the value of the solution page.

Enhancement: store the solution graph rather than the solution list (for big lists only?)

Currently, the extension does not store solution lists that exceed a given limit. Storing the solution graph instead would probably allow us to not exceed that limit in most cases.

We could also do this for every challenge, given that another benefit would be that future updates made to the parsing and clean-up algorithms could take effect on old solution lists.

On the other hand, having to parse the graph again each time a forum discussion is accessed could be a big setback.

I don't see the solutions on the forum/discussion pages

I recently added the solution-viewer extension to Chrome on my mac (running MacOS Catalina, version 10.15.7). When I am going through the lessons, I do see the solutions after I supply an answer: the SOLUTIONS button appears after the REPORT and DISCUSS buttons at the bottom. And if I bring up the discussion page at that time (with the DISCUSS button), I see the SOLUTIONS button to the left of the REPORT button at the top of the page, under the Duolingo sentence and correct answer. But if I bring up a discussion page from the VIEW OR REPLY link in an email (from a discussion I'm following) or a page I find from a search on forum.duolingo.com, I don't see the solutions. There is nothing to the left of the REPORT button.

Another user told me that I should be able to see the solutions on discussion pages as well. Since I answer a lot of user questions, it would be very useful to be able to tell users whether certain words or phrases are included in the accepted solutions. I almost always access the discussion pages via links in emails, not when I am actually going through the lesson myself.

Am I missing something? I am new to this extension, and it could be user error here. Thank you!

Optimization: improve the storage of challenges

Fork the storage-lru package, and:

  • wrap it around the chrome.storage API,
  • remove unnecessary features (eg: revalidation),
  • fix and optimize the purge process (it currently only checks for a few keys, which means the LRU promise is broken),
  • optimize it for asynchronicity (multiple overlapping calls to setItem when the quota is reached currently cause multiple purges),
  • add some useful options, such as callbacks for the purgeFactor, maxPurgeAttempts and purgeLoadIncrease options,
  • clean up the code.

Idea: What skill a sentence belongs to ?

I wonder if it is possible to determine (show) to what skill a sentence belongs to ? It will be useful in general practice and skills test out via "castles" type exercises . When i fail a particular sentence i would like to know to what skill it belongs to, so i can practice that skill more.
My post What skill(s) a sentence belong to? did not result in any good suggestions :(

Feature: Improve the calculation of similarity scores between answers and correct solutions

Currently, the similarity between answers and correct solutions is computed as-is, with only Unicode normalization being applied. Therefore, accented letters and their unaccented counterparts are considered completely different characters.

While this is desirable when the user enters a "perfect" answer with regards to accents, it turns out that the results can get quite random in the contrary case.

A solution would be to compute two similarity scores, applying more or less normalization, then averaging them in a consistent way.

Bug: lists of solutions not remembered in Firefox Nightly

I love that you can see the solutions from the sentence discussions, but I didn't notice it until now because this feature is not supported in Firefox Nightly (my standard browser). I can confirm it does work in Firefox.

I understand it's not a priority, but if you could somehow get it to work in Nightly that would be fantastic.

idea: Allow solution window to be relocated on the screen

This is a useful app; I've learned a few things from being able to view all the possible solutions to an exercise.
It would be helpful to be able to move the solution window to the right so I could see my translation. I sometimes get an exercise marked wrong because I either omitted a preposition or added one that doesn't belong and I can't always remember exactly what I wrote.

The solution viewer crashes very frequently in the Yiddish course

I often cannot complete a lesson in the Yiddish course without having the solution viewer crash. A notice appears telling me that it's crashed and says to click the bubble to reload. I click the bubble, but I don't think that it's really working again (because I don't see solutions) until I finish the lesson and then manually reload the page when I start the next lesson. I don't know if it's related, but I often advance to the next question without waiting for the solutions count/link to appear. I think it takes longer to make the solutions available for Yiddish than for Spanish. Not sure it's relevant, but I'm using a Mac mini, MacOS Catalina.

Feature: add some customization options

Some ideas:

  • Disable the similarity matching (to save some performances),
  • Disable the sorting on big solution lists,
  • Disable the display of solutions in the forum comments (to save some storage / bandwidth / performances),
  • Enable the inclusion of automatic tokens in the solutions (excluding or including the solutions with "fully automatic tokens"?),
  • Specify the storage quota for challenges,
  • Specify custom pagination options,
  • Enable the logging of errors (currently reserved to the development builds), or even various debugging messages (with different levels : errors, warnings and notices),
  • Specify options for the similarity matching (see #2)
  • Enable viewing the solutions before submitting one's answer? (perhaps only the most similar?)
  • Anything else?

Stopped working on Microsoft Edge

I loaded your extension version 3.0.0 on my Microsoft Edge Version 84.0.522.59 (Official build) (64-bit) last week. It worked great and is very helpful. However, today it stopped working, i.e., no prompts or messages.

I tried reloading the extension, restarting the browser, and restarting the PC. While the browser said the extension was there and turned on, nothing showed up on the Duolingo Spanish exercises.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.