Readme: show how to analyse the collocates of a lemma
The passage introducing collocationAnalysis() showed only how to pass a
word form, and left the plain lemma case to be inferred from the light
verb construction example, where the lemma layer appears inside a focus
query. lemmatizeNodeQuery was not mentioned at all, so that a model could
only arrive at it from prior knowledge of the package rather than from
the documentation - although the doc prompting tests accept it as a
correct answer.
Asked for the collocates of a lemma with this passage as it was, a model
reached for the word form in two of three runs; with the two ways spelled
out, in none of three.
The word form example was "setzts", which is a spoken contraction rather
than a form one would look for in a corpus, and reads oddly next to the
lemma it is meant to contrast with. It is now "setzte".
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: I4a40b33d6c7d77538f54529be1eee331fec97e05
diff --git a/Readme.md b/Readme.md
index d38a7a9..37ec55e 100644
--- a/Readme.md
+++ b/Readme.md
@@ -171,7 +171,8 @@
The focus, here, with the `[tt/l=setzen]` in braces, makes sure that the left context size parameter 1 is understood relative to the lemma `setzen`.
The `[tt/p=NN]` in the focus query makes sure that only nouns (at this position) are considered as collocates.
-To perform a simple collocation analysis for a word form, rather then a lemma and without restriction to light verb constructions, simply use, for instance, `KorAPConnection(verbose = TRUE) |> auth() |> collocationAnalysis("setzts")`.
+To perform a simple collocation analysis for a word form, rather than a lemma and without restriction to light verb constructions, simply use, for instance, `KorAPConnection(verbose = TRUE) |> auth() |> collocationAnalysis("setzte")`.
+For a lemma, either put the lemma layer into the query itself, `collocationAnalysis("[tt/l=setzen]")`, or let `lemmatizeNodeQuery = TRUE` build that query from the word form: `collocationAnalysis("setzen", lemmatizeNodeQuery = TRUE)`.
|LVC | logDice| pmi| ll|