ScienceMedium: Intelligent Scientific Content Publishing Pipeline
ScienceMedium is an AI-powered writing and publishing pipeline designed specifically for researchers and science writers. This tool addresses the unique challenges of scientific writing by combining intelligent research assistance, flexible content creation, and automated publishing to Medium.
Overview
ScienceMedium eliminates the friction between complex scientific content creation and online publishing by:
- Format-Agnostic Writing: Write in your preferred style without rigid Markdown/LaTeX constraints
- On-Demand AI Assistance: Get intelligent writing suggestions only when you request them
- Metacognitive Orchestration: An LLM-powered system that ensures quality and completeness
- Contextual Research Integration: Automated information gathering tied to your specific context
- Seamless Medium Publishing: Automatic conversion and publishing once content meets quality standards
Features
๐๏ธ Format-Agnostic Writing
- Write naturally without worrying about specific Markdown or LaTeX syntax
- The system handles conversion to Medium-compatible format automatically
- Support for scientific notation, formulas, tables, and diagrams
๐ง Intelligent Assistance
- Grammar, spelling, and style suggestions on demand
- Content quality assessment when requested
- Technical accuracy verification for scientific concepts
๐ Contextual Research Engine
- Automated information gathering based on your writing topic
- Knowledge database that builds as you research
- Context-aware search that returns only relevant information
- Integration with academic sources and scientific databases
๐งฉ Modular Text Architecture
- Treat paragraphs as โcellsโ or units that can be operated on
- Apply transformations to specific content blocks
- Automatically verify content against sources
- Insert and format scientific elements (formulas, citations, etc.)
๐ค Automated Medium Publishing
- Direct publishing to Medium after content meets quality standards
- Proper formatting of scientific elements
- Handling of complex layouts and visual elements
Installation
# Clone the repository
git clone https://github.com/yourusername/ScienceMedium.git
cd ScienceMedium
# Install dependencies
pip install -r requirements.txt
# Set up configuration
python setup.py
Configuration
Before using ScienceMedium, youโll need to:
- Obtain a Medium API Integration Token
- Log in to your Medium account
- Go to Settings > Integration tokens
- Create a new token and copy it
- Configure the application
python src/configure.py --medium-token "your_token_here"
- (Optional) Configure HuggingFace API access for enhanced AI features
python src/configure.py --huggingface-token "your_hf_token_here"
Usage
Basic Workflow
- Create a new article
python src/main.py new "My Scientific Article Title"
- Write and edit content
- Edit the created markdown file in your preferred editor
- Use special syntax for research queries and AI assistance
- Request AI assistance
python src/main.py assist article_filename.md
- Perform contextual research
python src/main.py research article_filename.md "research query"
- Validate content
python src/main.py validate article_filename.md
- Publish to Medium
python src/main.py publish article_filename.md
Special Syntax
ScienceMedium uses special syntax to trigger specific functions:
[?query]
- Research query that searches for information[!check]
- Request grammar and style check for the paragraph[#formula]
- Insert a LaTeX formula[@citation]
- Insert a citation from your knowledge base[^footnote]
- Create a footnote
Project Structure
ScienceMedium/
โโโ README.md # This documentation
โโโ requirements.txt # Python dependencies
โโโ setup.py # Installation script
โโโ src/ # Source code
โ โโโ __init__.py # Package initialization
โ โโโ main.py # Main entry point
โ โโโ configure.py # Configuration utility
โ โ โโโ __init__.py
โ โ โโโ quality.py # Content quality assessment
โ โ โโโ task.py # Task management
โ โโโ assistance/ # AI writing assistance
โ โ โโโ __init__.py
โ โ โโโ grammar.py # Grammar checking
โ โ โโโ suggestions.py # Content improvement
โ โโโ research/ # Research engine
โ โ โโโ __init__.py
โ โ โโโ search.py # Search functionality
โ โ โโโ knowledge.py # Knowledge database
โ โโโ publishing/ # Medium publishing
โ โ โโโ __init__.py
โ โ โโโ converter.py # Format conversion
โ โ โโโ api.py # Medium API integration
โ โโโ utils/ # Utility functions
โ โโโ __init__.py
โ โโโ file.py # File operations
โโโ examples/ # Example articles and configurations
โโโ sample_article.md # Sample article with annotations
Requirements
- Python 3.8+
- Medium account with API access
- Internet connection for research features
- (Optional) HuggingFace account for enhanced AI features
Contributing
This project is in active development. Contributions are welcome through:
- Bug reports and feature suggestions
- Pull requests for new features or bug fixes
- Documentation improvements
License
This project is available under the MIT License - see the LICENSE file for details.