I am trying to do the exact same histogram as below, but in Spanish.

Histogram[{StringLength /@ DictionaryLookup[], dataPnJ}, {1}, "Probability"]

You have not defined what dataPnJ is, but this should get you started:

Histogram[StringLength /@ DictionaryLookup[{"Spanish", "*"}]]

Mathematica graphics

  • $\begingroup$ i am trying to represent them as the frequency of their probability, your suggestion does do the spanish dictionary but shows frequencies. i am trying Histogram[ StringLength /@ DictionaryLookup[{"Spanish", *}, {1}, "Probability"]] but it does not work $\endgroup$ – Carlos Mario Cabrera Nov 19 '19 at 1:31
  • 3
    $\begingroup$ Your brackets are wrong and the * is actually a regex "*" (note the quotes). This works Histogram[ StringLength /@ DictionaryLookup[{"Spanish", "*"}], {1}, "Probability"] $\endgroup$ – halirutan Nov 19 '19 at 1:35
  • $\begingroup$ no luck, it shows a blank graph. $\endgroup$ – Carlos Mario Cabrera Nov 19 '19 at 1:46
  • 2
    $\begingroup$ This is the output of Mathematica 12.0: i.stack.imgur.com/wI1Be.png $\endgroup$ – halirutan Nov 19 '19 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.