The purpose of flagging words is to save words that you would like to learn or remember in the future. If you select any random word or phrase in a text, pressing the star in the top right corner of the orange tab will "flag" a word. All flagged words are automatically added to a deck. Furthermore, you can always deconstruct words further by pressing on the card.
The video below is a quick demo of flagging words while studying a text.