PHP Grammar Support forum php_xml_grammar Create speech recognition grammar W3C XML files This package is meant to generate grammar definition XML files for speech recognition applications according to W3 Consortium specification. This XML format for speech grammars is part of the SRGS specification ...
PHPCC Support forum phpcc Parse language string according to a given grammar This package can be used to parse code in any language given the definition of the language grammar, much like YACC or BISON for C. It takes as parameter a definition of a language grammar as a string. Then the main class ...
PHPPolygen Support forum phppolygen Generate phrases based on a grammar using Polygen This class can be used to generate random phrases based on a grammar using Polygen Web services API. It accesses the Polygen Web services API server and send request to generate a phrase using rules of grammar ...
This package can parse source code in a given language based on the language syntax defined in the BNF format (Backus-Naur Form). It takes a grammar with syntax rules defined in BNF format and parses the syntax to build a XML parse tree. The main class also takes as parameter a reference to a lexer ...
Chat Grammar Corrector Support forum chatgrammarcorrector Correct text with abbreviations used in chats This class can be used to correct text with abbreviations used by people in chats. It parses a string to find text with well known abbreviations and replace it by the English words that those ...
Parser of Expression Grammar Support forum peg_util Evaluate expressions in Reverse Polish Notation This class can be used to evaluate expressions in Reverse Polish Notation (RPN). It can take a string with an expression using RPN and parse it to evaluate its result. The class supports constants ...
This package template engine with configurable grammar. It provides several classes that can parse templates using a configurable grammar that includes the definition of any number of template place holder elements based on regular expressions defined for each element. Templates may include widgets ...
... for spell checking. There are also two classes for checking the spelling of text using either PHP scripts that contain arrays of valid words and grammar definitions, or using the hunspell program. If the classes determine that there are misspelled words, they may return suggestions for eventual fixes ...
... source code of a given language. First they split the code in tokens before evaluating whether the code syntax is correct according to the language grammar. This class provides a complete solution to tokenize any type of text using pure PHP code. It also supports the implementation of basic syntax operations ...