This application simulates the core functionality of the "Collective Constitution Creator" process (adapted from Pol.is, a real-time survey and opinion analysis tool), part of the Open-Source Collective Constitutional AI project. It demonstrates how this tool analyzes participant opinions on various comments to identify consensus groups, and how these groups can be used to create a constitution.
- Simulate participants voting on comments
- Visualize opinion clusters using Principal Component Analysis (PCA)
- Adjust simulation parameters in real-time
- Interactive Vote Matrix and PCA Projection
-
Node.js (v14 or later recommended)
- To install Node.js, visit the official website: https://nodejs.org/
- Download and run the installer for your operating system
- Follow the installation wizard, accepting the default settings
- After installation, open a terminal/command prompt and type
node -v
to verify the installation
-
npm (comes with Node.js)
- npm is automatically installed with Node.js
- To verify npm installation, open a terminal/command prompt and type
npm -v
-
Clone the repository:
git clone https://github.com/your-username/osccai-simulation.git cd osccai-simulation
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.