Wolfram Language

Words and Their Position

Version 12 extends functions like Nearest and TakeLargest so that they can now report simultaneously the objects found and their positions.

This example looks for certain words and their positions in a list of French words.

Find the three longest words in the list, of length 25 or 24.

Report both the words found and their position in the list.

Now find the five closest words to "anticonstitutionnellement" using Nearest.

Request all available properties, in this case the word, its position and the edit distance with the original.

Related Examples

de es fr ja ko pt-br zh