# Insight templates (ARCHITECTURE §7). Every number is computed from the snapshot; the text is a plain template. # # kinds: # change_since value at `since` (nearest year within ±3) vs latest → {v0} {v1} {y0} {y1} {delta} {pct} {abs_delta} {abs_pct} # {verb} = grew|fell (up|down for `verb_style: updown`, rose|declined for `verb_style: rise`) # rank_in_group rank of the country's latest value among the group's members for the same year → {rank} {n} {group} {v1} {y1} # group ∈ world | region | income | ; needs ≥ `min_n` members with data # vs_median latest value vs the group's median for the same year → {median} {ratio} {diff} {above_below} {v1} {y1} # avg_growth mean of the indicator over [from, latest] (for growth-rate indicators) → {avg} {y0} {y1} {n_years} # Placeholders {country} and {indicator} are always available. Values are formatted with the indicator's format/unit. templates: - id: population-since-2000 kind: change_since indicator: population since: 2000 verb_style: grow text: "{country}'s population {verb} {abs_pct} between {y0} and {y1}, from {v0} to {v1}." - id: gdp-per-capita-since-2000 kind: change_since indicator: gdp-per-capita since: 2000 verb_style: rise text: "GDP per capita {verb} from {v0} in {y0} to {v1} in {y1} ({signed_pct} in current US dollars)." - id: gdp-growth-decade-average kind: avg_growth indicator: gdp-growth from: 2014 text: "GDP grew {avg} a year on average over {y0}–{y1}." - id: gdp-per-capita-rank-oecd kind: rank_in_group indicator: gdp-per-capita-ppp group: oecd min_n: 20 text: "{country} ranks {rank} of {n} OECD members for GDP per capita (PPP), at {v1} in {y1}." - id: gdp-per-capita-rank-region kind: rank_in_group indicator: gdp-per-capita-ppp group: region min_n: 5 text: "Within {group}, {country} ranks {rank} of {n} for GDP per capita (PPP) ({v1}, {y1})." - id: life-expectancy-rank-region kind: rank_in_group indicator: life-expectancy group: region min_n: 5 text: "Life expectancy of {v1} ranks {rank} of {n} in {group} ({y1})." - id: life-expectancy-since-2000 kind: change_since indicator: life-expectancy since: 2000 verb_style: gain text: "Life expectancy {verb} {abs_delta} since {y0}, from {v0} to {v1} in {y1}." - id: renewables-since-2010 kind: change_since indicator: renewable-electricity-share since: 2010 verb_style: rise text: "Renewables' share of electricity generation {verb} from {v0} in {y0} to {v1} in {y1} ({signed_delta} points)." - id: urbanisation-since-2000 kind: change_since indicator: urban-population-share since: 2000 verb_style: rise text: "{v1} of the population lived in urban areas in {y1}, compared with {v0} in {y0}." - id: debt-since-2010 kind: change_since indicator: government-debt-pct-gdp since: 2010 verb_style: rise text: "Central government debt {verb} from {v0} of GDP in {y0} to {v1} in {y1}." - id: co2-per-capita-vs-world kind: vs_median indicator: co2-per-capita group: world text: "CO₂ emissions of {v1} per person are {ratio} the world median of {median} ({y1})." - id: median-age-rank-world kind: rank_in_group indicator: median-age group: world min_n: 50 text: "With a median age of {v1}, {country} ranks {rank} of {n} countries worldwide ({y1})." - id: internet-users-since-2010 kind: change_since indicator: internet-users since: 2010 verb_style: rise text: "{v1} of people used the internet in {y1}, up from {v0} in {y0}." - id: unemployment-vs-region kind: vs_median indicator: unemployment-rate group: region text: "Unemployment of {v1} in {y1} is {above_below} the {group} median of {median}." - id: trade-vs-world kind: vs_median indicator: trade-pct-gdp group: world text: "Trade is worth {v1} of GDP ({y1}), {above_below} the world median of {median}." - id: fertility-since-2000 kind: change_since indicator: fertility-rate since: 2000 verb_style: rise text: "The fertility rate {verb} from {v0} in {y0} to {v1} in {y1}."