Prefixes are handled by words, with a consistent naming format: __X where X is the prefix character. I also added a prefixes vocabulary, allowing the prefixes to be toggled on and off simply.
The notfound error handler was extended to search for prefix words if a name isn't found in the dictionary. If the prefix is found, and the rest of the name is found, the word is passed to the prefix handler.
The end result is a clean, extensible way of handling, adding, and replacing prefixes. Plus, they can easily be disabled or enabled as desired.
No comments:
Post a Comment