Part A:(adsbygoogle = window.adsbygoogle || []).push({});

Get the list of pairs of the form {language,number of words in dictionary}. Call this list Alength.

What I did:

lang = DictionaryLookup[All] to get all the languages. Then,

Alength = {Length[DictionaryLookup[{"Finnish", All}]], Length[DictionaryLookup[{"Arabic", All}]]}.........}

What is a shorter way of doing this?

-------------

Part B:

Get a list of the form {language, length longest word in the dictionary}. Call this list longestword.

I did:

longestword = Max[DictionaryLookup[All]]

But that's not coming out correctly.

--------------

Part C:

Look at all the words contained in all the dictionaries. What are the ones of maximum length?

I did:

Max[StringLength[lang]]

It comes out as 19, but I think there's something wrong here as well.

--------------

Part D:

What are all the words of length 20 in the Mathematica English dictionary.

This one I have no idea.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Help with Mathematica?

Tags:

Loading...

Similar Threads - Help Mathematica | Date |
---|---|

Mathetica function (help fix my equation please) | Mar 15, 2016 |

Undetermined gauges (Help in mathematica)() | Oct 27, 2014 |

Help with "Which[] in a For loop using Mathematica | Sep 12, 2014 |

New to mathematica, some basic help needed | May 10, 2014 |

Mathematica NDSolve conditions help | Dec 22, 2013 |

**Physics Forums - The Fusion of Science and Community**