Skip to content
/ puree Public

A quick and easy way to find regions that have been tagged.

License

Notifications You must be signed in to change notification settings

esfalsa/puree

Repository files navigation

Purée

Purée is an easy-to-use website that flags NationStates regions which may have been tagged.

Features

Purée allows you to…

  • Identify regions that may have been tagged
  • Track the number of regions found over time
  • Generate lists of regions to detag

Flagging Criteria

For each vulnerable region, Purée scans the World Factbook Entry, open and requested embassies, names of Regional Officer positions, and names of nations who appointed current Regional Officers.

World Factbook Entry

The World Factbook Entry is flagged if it contains links to…

Embassies

Embassies are flagged if they are open or requested (not closing or rejected) and are with…

  • The Black Hawks
  • The Brotherhood of Malice
  • Valle de Arena
  • Red Front
  • Plum Island
  • Kingdom of Australia
  • Pasridi Confederacy

Regional Officers

Regional officers are flagged if their position is named…

  • Raider Unity
  • Thorn1000
  • Join TBH
  • Join %%Lily%%
  • Lily
  • The Funny
  • Empress Wasc
  • ERN
  • TWPirate
  • TWPirates
  • Kanye Omari West
  • Aga Gang
  • EPSA
  • Hellfire Hawk

Regional officers are also flagged if they were appointed by a nation matching any of the regular expressions

  • guy_\d+
  • rc_cola_\d+
  • ijaka(\d|10)
  • taiko_no_tatsujin_\d+
  • bobberino\d+
  • \d+(rd|th|nd|st)_catgirl_division
  • switz_got_lazy_\d+
  • switz_\d+
  • sweeze_\d+
  • tls_\d+
  • flap_flap_boom_\d+
  • liliarchy_ancillary_\d+
  • lucklife_\d+
  • lurklife_\d+
  • wednesday_\d+
  • thursday_\d+
  • thorn\d+
  • wascoitan_?\d+
  • pineapple_on_pizza_is_good_\d+
  • foxes_\d+
  • oversized_operativez_\d+
  • cretanja_garrison_\d+
  • legionnaries_{roman_numeral_regex}
  • legionnary_{roman_numeral_regex}
  • souls\d+
  • rb\d+
  • remus_\d+
  • remus_{roman_numeral_regex}
  • yor_\d+
  • punch_from_mark_lee_\d+
  • upc_is_not_fast_\d+
  • beans_on_toast_\d+
  • bigred\d+
  • terberrinse_\d+
  • flame_of_chaos_\d+
  • narioni_\d+
  • jyezet_fighter_\d+
  • {roman_numeral_regex}_proleterska_vazduhoplovna_brigada

Here, roman_numeral_regex is substituted with the regular expression m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3}).

Whitelisted Regions

Regions are whitelisted and will never be flagged if they are:

  • Suspicious, the Black Hawks, the Brotherhood of Malice, Lily, or Osiris
  • Regions with a non-executive delegate
  • Regions with a password
  • Regions with an embassy with Antifa
  • Regions with an existing delegate

Run Site Locally

The Purée site displays all tagged regions found and allows users to filter those regions to create a list of targets. To run the site locally:

  1. Clone the repository: git clone https://github.com/esfalsa/puree.git
  2. Install Ruby dependencies: bundle install
  3. Install Node.js dependencies: npm install
  4. Start the development server: bundle exec jekyll serve

Run Parser Locally

The Purée parser searches daily dumps for tagged regions and outputs the regions found in CSV, JSON, and XLSX formats. To run the parser locally:

  1. Clone the repository: git clone https://github.com/esfalsa/puree.git
  2. Install dependencies: poetry install
  3. Run the parser: poetry run python main.py

Contributing

Contributions are always welcome! Feel free to submit a pull request or file an issue for bug reports or feature requests.

License

AGPLv3