1. Forum
  2. >
  3. Topic: Duolingo
  4. >
  5. Finding Beta Course Word Coun…

https://www.duolingo.com/profile/AlexisLinguist

Finding Beta Course Word Counts

Ensure that you are in the course for that specific language first.

For Dutch (Netherlands), Irish, Danish, you can plug in ga or da, or dn.

  1. Open the JavaScript console (right click for Safari)

  2. Type in duo.user.attributes.language_data.xx (xx being dn, ga, or da)

  3. Scroll down to word count

Inspect Element for Firefox

Inspect Element for Google Chrome

November 8, 2014

22 Comments


https://www.duolingo.com/profile/_pinkodoug_

An easier solution for those uncomfortable with navigating through the d.u.attributes object or who are unsure of the ISO code for their language is to simply paste this into the console:

duo.user.attributes.language_data[duo.user.attributes.learning_language].word_count

As I mentioned in another post, Only the word count for the current active language is available, so you'll have to switch languages if you want to check other counts (d.u.a.languages only exposes a minimal amount of info to the client, and word count is not included).

Also, the "inspect element" option is only tangentially related to this. To directly open the console for Chrome, press ctrl-shift-j or for Firefox, press ctrl-shift-k. I think it's something like cmd-opt-c for Safari, but I'm not 100% sure about that due to my contempt for iStuff.

cGlua29kb3Vn


https://www.duolingo.com/profile/AlexisLinguist

Only the word count for the current active language is available, so you'll have to switch languages.

And just to add to that, once you have switched to that language once, it will stay "active" in the console, so the word counts can be checked again if the language is switched to another (I assume the history is deleted once the browser is closed, at least for Safari).

Thanks. For Safari, that would be opt+cmd+I.


https://www.duolingo.com/profile/_pinkodoug_

Thanks. For Safari, that would be opt+cmd+I.

I thought that just opened the inspector, which depending on context or the last tab you used in the inspector might drop you into the console. Whereas cmd-opt-c always takes you directly to the console tab, no? It's kind of the equivalent of using ctrl-shift-j/k in chrome or firefox rather than f12 to open developer tools. It's been a while since I've touched a Mac, so I could be wrong, but that's my recollection.


https://www.duolingo.com/profile/AlexisLinguist

Ah, yes, I'd assumed it was so because the console always comes up for me now.


[deactivated user]

    https://www.duolingo.com/profile/_pinkodoug_

    After a recent change to Duolingo, people studying courses that are currently in phase 2 / beta testing such as Irish for English speakers, English for Greek speakers, French for German speakers, etc. can no longer see their word count (the number of lexemes that they've learned through lessons). This is work-around for those users who want to see their word counts.


    https://www.duolingo.com/profile/Eey91

    Is this also an A/B test? Because I still have my words tab and count for my Portuguese from Spanish which is also in beta


    https://www.duolingo.com/profile/_pinkodoug_

    No, it's not an AB test, but many (most?) beta courses do not have a words tab.


    https://www.duolingo.com/profile/jackmchugh12

    when i try this it keeps saying 'unidentified'


    https://www.duolingo.com/profile/AlexisLinguist

    Are you doing this while under the Irish course (for ga)?


    https://www.duolingo.com/profile/AlexisLinguist

    Yes, you see those two xx after language_data in the second step? Replace those with ga.


    https://www.duolingo.com/profile/jackmchugh12

    ok thanks!

    Edit: got it!


    https://www.duolingo.com/profile/jackmchugh12

    Sorry can i just ask i had to type that out because it wouldn't let me copy and paste. (firefox) how can i do this?


    https://www.duolingo.com/profile/AlexisLinguist

    Just type it out as it has been written there.


    https://www.duolingo.com/profile/_pinkodoug_

    You should be able to paste into firefox without a problem. Just press ctrl-shift-k to open the console and paste this next to the > prompt (you don't need to modify anything):

    duo.user.attributes.language_data[duo.user.attributes.learning_language].word_count


    https://www.duolingo.com/profile/mjaumjaupurr

    Thanks so much for sharing this! It worked perfectly. I'd been wishing I could see my word count for Irish because it actually does represent the sum total of my vocabulary in that language at this point (whereas for Spanish I was using duolingo more to review so the word count wasn't as meaningful).


    https://www.duolingo.com/profile/AlexisLinguist

    You're welcome, glad it could help you. :)


    https://www.duolingo.com/profile/Lernhase

    Thanks AlexisLinguist, much appreciated.


    https://www.duolingo.com/profile/oskarb123

    Tried this on Hungarian but didn't work.

    Learn a language in just 5 minutes a day. For free.