Add full collocation analysis (client side only implementation)
Resolves #2
Change-Id: Ib01d89a72b44ff06816b21532b7ea709a4e837b0
diff --git a/demo/00Index b/demo/00Index
index 7ff8cf1..c392b70 100644
--- a/demo/00Index
+++ b/demo/00Index
@@ -1,11 +1,11 @@
-frequenciesOverTime Plot frequency of query expressions over time
-frequenciesOverDomains Box plot frequency of query expressions per topic domain
-conditionsOverTime Plot frequency of query expressions over time under different conditions
-alternativesOverTime Plot proportion of alternative spellings/variants over time
-regional Map plot regional frequencies of query expression
-mosaicplot Visualize frequencies of alternative query terms in relation to other variables
-highcharter-example Visualize frqequencies of optionally alternative terms over time with interactive HTML and JavaScript elements using the package highcharter as wrapper for Highcharts
-shiny-frequency-curves Web application that plots frequency curves with highcharts and shiny
-writtenVsSpoken Compare frequencies in written vs. spoken corpora
-displayKwics Display query results as KWICs via html
-
+frequenciesOverTime Plot frequency of query expressions over time
+frequenciesOverDomains Box plot frequency of query expressions per topic domain
+conditionsOverTime Plot frequency of query expressions over time under different conditions
+alternativesOverTime Plot proportion of alternative spellings/variants over time
+regional Map plot regional frequencies of query expression
+mosaicplot Visualize frequencies of alternative query terms in relation to other variables
+shiny-frequency-curves Web application that plots frequency curves with highcharts and shiny
+writtenVsSpoken Compare frequencies in written vs. spoken corpora
+displayKwics Display query results as KWICs via html
+light-verb-construction-ca Collocation analysis to identify light verb constructions matching the pattern "in NN setzen", with result rendered as HTML DataTable
+highcharter-example Visualize frequencies of optionally alternative terms over time with interactive HTML and JavaScript elements using the package highcharter as wrapper for Highcharts
diff --git a/demo/light-verb-construction-ca.R b/demo/light-verb-construction-ca.R
new file mode 100644
index 0000000..c8a323e
--- /dev/null
+++ b/demo/light-verb-construction-ca.R
@@ -0,0 +1,20 @@
+library(RKorAPClient)
+library(knitr)
+new("KorAPConnection", verbose = TRUE) %>%
+ collocationAnalysis(
+ "focus(in [tt/p=NN] {[tt/l=setzen]})",
+ leftContextSize = 1,
+ rightContextSize = 0,
+ exactFrequencies = FALSE,
+ searchHitsSampleLimit = 1000,
+ topCollocatesLimit = 20
+ ) %>%
+ mutate(LVC = sprintf("[in %s setzen](%s)", collocate, webUIRequestUrl)) %>%
+ select(LVC, logDice, pmi, ll) %>%
+ head(10) %>%
+ kable(format="pipe", digits=2) %>%
+ cat(file="/tmp/in_setzen.md", sep="\n")
+
+#rmarkdown::render("/tmp/in_setzen.md")
+#browseURL("/tmp/in_setzen.html")
+