Smart Rule implementation using SpaCy


portfolio page smart rules

About Textmetrics
Textmetrics is a company that specializes in text optimization and content creation tools. They provide software that helps businesses improve the quality and effectiveness of their written content, e.g., job advertisements, by analyzing and offering suggestions for enhancements. Their platform is often used to ensure that content is clear, inclusive, and aligned with brand and SEO strategies.

Task
When a new customer starts using Textmetrics' text optimization software, I implement custom rules in the system that align with the customer's writing guide. For example, some businesses would like to write numbers below twenty in digits, other prefer its written out form. I make sure Textmetrics' tool makes correct suggestions to the customer's text. Other examples include specific formats for time, dates, valuta and phone numbers, or avoiding certain words or phrases.

Method
Part of the backend that makes these customisations possible is a Python application that heavily relies on SpaCy and extends upon this. It uses SpaCy's doc type with its tokenization and many more of its features. There are multiple NLP pipelines running that analyse the text and create the optimization suggestions to the user.