Computer method for executing transformation rules
Abstract
A computer method is disclosed for using rewrite rules of the form X(Y)Z=(R) where X is the left context, Y is the body of the rule, Z is the right context and R is the replacement value for Y if the rule is successful. The method places restrictions on how the rules are defined to make it possible to organize the rules so that they can be indexed efficiently. In particular, the body of the rules is not allowed to be defined in generic terms, whereas this restriction is not applied to the left and right context of the rules. The rules are scanned so that the first rule that matches the body and its context is the one that applies. Ordering the rules into a hierarchy makes it possible to have exceptions to any particular rule. The method encompasses a model where the rules are applied to any input string. When no rules apply to any character of the input string, a default rule to copy the string is applied. This guarantees that the process will always terminate and that it will be loop-free.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 23.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A process for executing transformation rules within a computer system with an input and an output which sequentially, for each input character, comprises the steps of: looking up the current input character in an index which identifies the rules applicable to that character; attempting to match a portion of the rule identified as the "body" of the rule having a string of one or more characters against the input string, starting at the current input character; attempting to match a portion of the rule identified as the "right context" of the rule having a sequence of strings
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 23 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- Brodda, B. et al., "An Experiment with Automatic Morphological Analysis of Finnish", Dept. of Linguistics, Univ. of Hel., No. 7, 1981.
- Brodda, B. et al., An Experiment with Automatic Morphological Analysis of Finnish , Dept. of Linguistics, Univ. of Hel., No. 7, 1981.
- Carlgreen et al., "Minimum Redundancy Hyphenation Data Storage Technique", IBM Tech. Discl., Apr. 1984, pp. 6109-6109.
- Carlgreen et al., Minimum Redundancy Hyphenation Data Storage Technique , IBM Tech. Discl., Apr. 1984, pp. 6109 6109.
- Elovitz, H. S. et al., "Letter-to-Sound Rules for Auto. Trans. of Eng. Text to Phonetics", IEEE, vol. 24, No. 6, Dec. 1976, pp. 446-458.