At some point, we need to decide, what level of word processing, we need and want to employ. This will, in parts, also determine the scope of the package (#2). Some of the rules defined in #1 require more than a simple if condition. For example, we can't easily programmatically guess, if a word is a noun or a verb, let alone more complex definitions. There might be extensions that have already tackled this challenge: https://www.php.net/manual/en/refs.international.php, https://www.php.net/manual/en/book.parle.php
Maybe even this package: https://github.com/thrashzone13/wordnet-php-wrapper
We probably don't want to utilize full-blown NLP, do we?
At some point, we need to decide, what level of word processing, we need and want to employ. This will, in parts, also determine the scope of the package (#2). Some of the rules defined in #1 require more than a simple if condition. For example, we can't easily programmatically guess, if a word is a noun or a verb, let alone more complex definitions. There might be extensions that have already tackled this challenge: https://www.php.net/manual/en/refs.international.php, https://www.php.net/manual/en/book.parle.php Maybe even this package: https://github.com/thrashzone13/wordnet-php-wrapper We probably don't want to utilize full-blown NLP, do we?