Text Diff Engine

A high-precision text comparison API developed by Formamind, capable of detecting even the smallest changes, including edits inside moved text blocks.

Tech stack:

Project is available here: Visit website

Cover image showcasing Text Diff Engine project

The project

TextDiffEngine

TextDiffEngine is a text comparison API created by Formamind to address the need for more accurate and reliable text analysis. Designed by our algorithmic experts, it can detect word-level edits, rephrased sentences, and even modifications inside moved text blocks. The engine is already used in our internal and client projects and is available publicly as an API.

The challenge

Why we built it

Our experience working with legal and compliance software revealed a gap in existing diff tools. Most available engines fail when text blocks are reordered or rewritten with minor edits. We needed a solution that could understand real text changes rather than relying only on line-by-line comparison. This need led us to develop TextDiffEngine, a smarter and context-aware diff algorithm.

Chosen screenshot of the TextDiffEngine algorithm explaination

Our approach

Built for precision and usability

We developed TextDiffEngine as a standalone API, accessible through our website. The service is optimized for performance, capable of processing complex text structures with speed and accuracy. Users can buy API tokens directly on the website through a Stripe-based payment gateway. The API is fully documented, and we created an official Python module that allows quick integration into any project.

Screenshot of the TextDiffEngine payment options

What we delivered

The solution

TextDiffEngine provides a clean REST API that delivers structured diff results suitable for both automation and visualization. It recognizes moved text blocks, word-level edits, and insertions and deletions with exceptional precision. The engine returns output in two formats - a detailed JSON for programmatic processing and a rich HTML format for direct rendering in web applications, allowing flexible integration into any workflow. The website includes documentation, examples, and an interface for purchasing tokens via Stripe. We are now developing user accounts and dashboards for token management, as well as a live demo tool where users can test text comparisons directly in the browser.

Ongoing development

What’s next

The API and its Python integration are stable and in active use, while the website is being updated to support user profiles and live previews. Our next steps include live text comparison tool directly on the website, landing page, and refining token management within personal accounts. TextDiffEngine continues to evolve as one of the most advanced text comparison tools available online.

In conclusion

Accurate, scalable, and open

TextDiffEngine represents Formamind’s focus on technical precision and practical design. It combines high-performance algorithms with a user-friendly API and accessible documentation. By offering this as a public service, we make advanced text comparison technology available for developers, researchers, and companies worldwide.

If you are looking for a Tech Partner to help your business reach the next level, contact us below, and let’s get started!

Contact us

By sending a message you agree to our privacy policy.

Get in touch with us, describe your request and we will guide you through the process of turning your ideas into reality.