Allotaxonometer
RustCompares two type-frequency systems using the allotaxonometer (rank-turbulence divergence).
Each system is defined by a dataset, an optional entity, a date range, and optional filter values. The two systems may differ on any combination of axes:
- entity vs entity — e.g. US Wikipedia vs UK Wikipedia
- dates vs dates — e.g. October vs November
- filter-only — e.g.
sex=Mvssex2=F(skipping entity registry)
Filter dimensions — look up a dataset's available filter dimensions via
GET /registry/{domain}/{dataset_id}(transform.filter_dimensions). Pass them as extra query params using thedim/dim2suffix convention:?sex=M&sex2=Fcompares boy vs girl babynames,?geo=US&geo2=CAcompares countries. Entity registration is optional when a filter dimension serves as the comparison axis.
Query Parameters
string Domain owning the dataset
string Dataset ID within the domain
Global entity ID for system 1, e.g. 'wikidata:Q30' (United States). Optional — omit for datasets using filter_dimensions as the comparison axis.
Global entity ID for system 2, e.g. 'wikidata:Q145' (United Kingdom). Optional — omit for datasets using filter_dimensions as the comparison axis.
Date/year range for system 1. Single value '2024-10-01' or range '2024-10-01,2024-10-31'. Omit to load all time.
Date/year range for system 2. Omit to load all time.
string RTD alpha parameter (number or 'inf')
Comma-separated alphas for multi-alpha mode, e.g. '0.5,1.0,inf'
integer Max types to load per system before computing
integer Truncate wordshift output to top N entries
Available Datasets
Pass these as additional query parameters using the actual column names from each dataset.
babynames/ngrams
Baby names by popularity, year, and location with entity mappings
No filter dimensions.
reddit/ngrams
Reddit ngrams
n default: 1 · 1, 2lang default: af · af, als, am, an, ar …and 162 morevt-zoning-atlas/ngrams
Vermont zoning bylaw word frequencies by town.
No filter dimensions.
wikimedia/ngrams
Wikipedia n-grams by frequency, date, and location with entity mappings and ranks
ngram_size default: 1 · 1, 2granularity default: daily · daily, monthly, weeklyResponse
numberNormalization constant for the rank-turbulence divergence
numberSum of normalized divergence elements — the actual D_alpha^R value
array2D rank-space histogram used to render the diamond plot
numberMaximum delta-loss value (used for color-scale normalization)
integerNumber of cells along one side of the diamond grid; use to size the band scale
numberLargest log10(rank) across both systems, rounded up to at least 1; use to label diamond axes
numberAlpha parameter used in the computation
numberBalance measure between the two systems (0.5 = equal, >0.5 = system 2 dominates)
arrayTop contributing types, sorted by absolute divergence contribution.
objectRequest metadata echoed back
curl -X GET http://localhost:8000/storywrangler/allotax \