statable Statistics for study and research

Finding similar passages (word similarity, TF-IDF)

In brief

For a chosen passage Statable shows sentences containing similar words. This helps you find further passages that may deserve the same code. Statable compares only words, not meaning, and suggests no codes.

What is it?

The measure is called TF-IDF (term frequency, inverse document frequency). Each sentence is viewed as a list of its words. A word gets a high weight if it appears often in the sentence and is rare in the whole material. Common words such as “and” or “I” get a low weight. Two sentences are similar if they share the same rare words. The number behind this lies between 0 (no shared words) and 1 (same mix of words).

Statable calculates this on your device and sends nothing away. There is no word stemming and no list of unimportant words; upper and lower case are ignored.

Limits

Why no AI suggestions?

Statable uses no generative AI. It never codes by itself, suggests no codes and writes no summaries. Coding is interpretation, and that should stay with you and be traceable. The word comparison can be explained and recalculated; a language model cannot.

How it works in Statable

  1. In the section “Analysis” choose the view “Where is there something similar? (similar passages)”. The switch “Offer similar passages” turns the function on or off. Switched off, the view shows only the switch and the sentence “Switched off.”
  2. Mark a passage in the text or choose sentences. Without a selection the sentence at the cursor is used.
  3. Choose “Search similar passages”. Statable names the number of hits, for example “10 similar passages found.”
  4. The hits are in a list: document, sentence number, text and the similarity. The button “Show in the text” jumps to the passage as with a piece of evidence.
  5. You give codes afterwards yourself, through the code bar, as usual.

Not true - this is how it is

Take away

  • TF-IDF compares words: rare shared words count more than common ones.
  • The measure does not recognise meaning, negation or words with the same sense.
  • Statable suggests no codes and uses no generative AI. The function can be switched off.

Related

Open in Statable