A comprehensive web application for analyzing marketing documents and ensuring compliance with SEC Marketing Rule 206(4)-1. This tool helps investment advisors verify that their advertisements, RFPs, RFIs, and other marketing materials meet regulatory requirements.
- Multi-format Support: Upload PDF, Word documents (.docx), and text files
- Comprehensive Compliance Checking: Analyzes documents against key SEC Marketing Rule requirements
- Real-time Processing: Get instant compliance feedback upon upload
- Performance Advertising: Checks for proper time periods, anti-cherry-picking compliance, and required disclosures
- Hypothetical Performance: Ensures proper warnings and risk disclosures are present
- Testimonials & Endorsements: Verifies required compensation and conflict of interest disclosures
- Substantiation: Identifies unsubstantiated claims and ensures proper evidence documentation
- Anti-Fraud: Detects potentially misleading statements and ensures appropriate risk disclosures
- Third-Party Ratings: Checks for proper rating disclosures (date, source, compensation)
- Overall Compliance Score: 0-100% rating based on findings severity
- Severity Levels: High, medium, and low priority findings
- Status Categories: Compliant (85%+), Needs Review (70-84%), Non-Compliant (<70%)
- Detailed Findings: Specific compliance issues with context and location
- Expert Recommendations: Actionable steps to improve compliance
- Document Statistics: Word count, page count, and format information
- Modern UI: Clean, professional design built with React and Tailwind CSS
- Document Library: View and manage all uploaded documents
- Detailed Reports: Comprehensive analysis results with export capabilities
- Responsive Design: Works seamlessly on desktop and mobile devices
- FastAPI: High-performance Python web framework
- SQLAlchemy: Database ORM with SQLite
- PyPDF2: PDF text extraction
- python-docx: Word document parsing
- Custom NLP Engine: Regex-based compliance pattern matching
- React 18: Modern JavaScript framework
- Tailwind CSS: Utility-first CSS framework
- Heroicons: Beautiful SVG icons
- Axios: HTTP client for API communication
- React Router: Client-side routing
- Python 3.8+
- Node.js 14+
- npm or yarn
-
Install Python Dependencies
pip install -r requirements.txt
-
Start the Backend Server
cd backend python -m uvicorn main:app --host 0.0.0.0 --port 8000 --reloadThe backend API will be available at
http://localhost:8000
-
Install Node Dependencies
cd frontend npm install -
Start the Frontend Development Server
npm start
The frontend will be available at
http://localhost:3000
-
Start Both Servers
- Backend:
cd backend && python -m uvicorn main:app --reload - Frontend:
cd frontend && npm start
- Backend:
-
Access the Application
- Open your browser to
http://localhost:3000
- Open your browser to
-
Upload a Document
- Click "Upload Document" or drag and drop a file
- Select the document type (Advertisement, RFP, RFI, etc.)
- Click "Analyze Compliance"
-
Review Results
- View your compliance score and status
- Review detailed findings and recommendations
- Access full analysis from the Documents page
The backend provides a RESTful API with the following endpoints:
POST /upload-document/
Content-Type: multipart/form-data
Form Data:
- file: Document file (PDF, DOCX, TXT)
- document_type: Type of document (advertisement, rfp, rfi, etc.)GET /documents/GET /documents/{document_id}GET /healthFull API documentation is available at http://localhost:8000/docs when the backend is running.
This tool checks compliance with SEC Marketing Rule 206(4)-1, which includes:
-
Performance Advertising Standards
- Standardized time periods (1, 5, 10 years, inception)
- Net fee disclosures
- Past performance disclaimers
-
Hypothetical Performance Rules
- Clear hypothetical labels
- Risk and limitation warnings
- Proper substantiation
-
Testimonial & Endorsement Requirements
- Compensation disclosures
- Conflict of interest statements
- Client vs. non-client identification
-
Substantiation Requirements
- Evidence for performance claims
- Documentation for awards/rankings
- Prohibition of unsubstantiated statements
-
Anti-Fraud Provisions
- No misleading statements
- Appropriate risk disclosures
- Clear, non-deceptive language
SEC-Marketing-Rule-Checker/
βββ backend/
β βββ main.py # FastAPI application
β βββ models.py # Database models
β βββ schemas.py # Pydantic schemas
β βββ database.py # Database configuration
β βββ document_parser.py # Document text extraction
β βββ compliance_engine.py # SEC compliance analysis
β βββ __init__.py
βββ frontend/
β βββ public/
β β βββ index.html
β βββ src/
β β βββ components/
β β β βββ Header.js
β β β βββ Footer.js
β β βββ pages/
β β β βββ UploadPage.js
β β β βββ DocumentsPage.js
β β β βββ DocumentDetailPage.js
β β βββ App.js
β β βββ App.css
β β βββ index.js
β βββ tailwind.config.js
β βββ postcss.config.js
β βββ package.json
βββ requirements.txt
βββ README.md
This is a compliance tool designed to assist with SEC Marketing Rule analysis. When contributing:
- Ensure accuracy of compliance rules
- Test thoroughly with various document types
- Maintain professional code standards
- Update documentation for any rule changes
For technical issues or compliance questions:
- Review the SEC Marketing Rule documentation
- Consult with qualified compliance counsel
- Check the API documentation at
/docs
This project is created for educational and professional compliance assistance purposes. Always verify compliance requirements with legal counsel.
Built for compliance professionals by compliance professionals π‘οΈ