Skip to main content
100%

Example from Programming4Humanists

✓ Published0🌍 Public
CCliffordAnderson
Last edited Nov 6, 2015
Created on Nov 6, 2015

This example visualizes word frequency in a text by processing the poem’s lines and filtering out common stopwords. It shows a ranked list of words by their occurrence count, displayed in descending order. The code uses XQuery 3.0 with functions like `fn:tokenize`, `fn:distinct-values`, and `fn:count` to compute frequencies, while reading the source text and stopword list from gist URLs. The rendering approach is a simple textual output of word elements, each carrying a `frequency` attribute, rather than a graphical chart.

AI-generated description

Similar vizzes