This tool is being built as a Firefox Extension to perform analysis on webpage text. Use it to analyze the readability of your favorite webpages, selected text on a webpage, or while composing your emails. Use it and let me know what you think!
- Text Analysis Extension
- Data collection
- Get the Code
- Developing the Browser Extension
- Install the Azure Function Development Tools
- Azure Function to Process Webpage Text
- Azure function to Extract Text (Javascript)
- Azure Functions to Analyze Text (Python)
- Contact
- Analyze Readability of an entire webpage
- Analyze Readability of selected text on a webpage
- Analyze Readability of custom text
- Computes a summary of a webpage using Extractive Summarization
- Analyze image content in webpages
- Compute Summaries using Generative Summarization
- Give suggestions for how to improve content writing quality / readability.
- Add support for other browsers
Other ideas? Let me know by creating an issue!
The extension does not collect any personal data. The only data that is stored in a cosmos DB instance is webpage data, extracted text, and any computed metrics such as a summary and readability metrics.
git clone https://github.com/tkawchak/TextAnalysisExtension.git
Form the base folder of the repository, type:
cd BrowserExtension
In order for these commands to run, you must install the dependencies from the packages.json file.
npm install
You will need to add sudo to this command if you do not have proper permissions.
sudo npm install
npm run build
Under the hood, this uses the browserify command to package everything into web-compatible .js files. This project is using parcel to build the extension: https://parceljs.org/recipes/web-extension/
npm test
or
npm run test
See the package.json file for more commands including "clean", "watch" to build whenever you make changes, and others.
Make sure to follow the instructions in Package the Extension prior to running the extension.
Open up a new window in firefox and go to the page
about:debugging#addons
Click the button that says
Load Temporary Add-on...
And select the manifest.json file in this repository. The extension will be working in your Firefix Browswer!
Visit the Azure Functions Docs for how to do this for your platform.
Change to the proper folder (from the root of the project).
cd ProcessText/ProcessTextFunc
Edit or create the file at the location
ProcessText/ProcessTextFunc/local.settings.json
Replace the settings with the proper connections and values for the cosmosDB and Azure Functions Azure Resources.
TODO: Update this with the proper local contents of the local.settings.json file
dotnet restore
Start the Azure Functions host. Run the Start Command.
func host start --port 7071
or
func start --port 7071
Change to the proper folder:
cd ProcessText/ProcessTextFunc.Tests
Run the dotnet test command:
dotnet test
This will run all tests in the project.
Change to the proper folder:
cd TextExtractionFunc
Start the Azure Functions host. This must be on a separete port from other Azure Functions.
func host start --port 7072
or
func start --port 7072
npm install
Run all tests.
npm run test
Change to the proper folder:
cd TextAnalysisFunc
pip install -r requirements.txt
Start the Azure Functions host. This must be on a separete port from other Azure Functions.
func host start --port 7073
or
func start --port 7073
See the TextAnalysisFunc/README.md for details on testing.
Inquiries about how to get data or help with the project? Contact Tom