cws
Greetings Guest
home > library > journal > view_article
« Back to Articles » Journal
PhoMo Page
0▲ 2 ▼ 2
Using the PhoMo testing form
This public article was written by [Deactivated User], and last updated on 12 Mar 2018, 02:12.

[comments] [history] Menu 1. 1 - Rulesets 2. 2 - Ruleset save options 3. 3 - Output options 4. 4 - Categories 5. 5 - Rules 6. 6 - Rule auto-filler 7. 7 - Input 8. 8 - Input auto-filler <noindex>This article covers what each part of the PhoMo form is used for and how to correctly use it.

If you have a question about how to make PhoMo work for your language, please see the PhoMo Help Centre Thread.


This article is also coupled with the ones below:
[PhoMo FAQs]
[PhoMo Rules Help]
[PhoMo Examples Reference]

Below is a screenshot (updated 13 October 2014) that shows the parts of the PhoMo form. The numbers correspond to the numbered topics in this article.



[top]1 - Rulesets

The purpose of a ruleset is to allow you to have multiple testing situations on the go. Using the drop down, you change between rulesets, and these will auto-fill PhoMo based on the last time you saved this ruleset.

The delete button will remove the ruleset that you're currently on (this cannot be undone), but you will have to confirm this first.

The reload button is useful in case the ruleset didn't load properly. This will force PhoMo to attempt to load it again, hopefully resolving the issue.

[top]2 - Ruleset save options

This option tells PhoMo what to do with the information currently in the form when you click 'Apply rules'. The options are:

  • Save current set
    • This will save the information in the form to the ruleset currently showing under 'Ruleset'

  • New set
    • Clicking this will cause a text field to appear. Enter a new name for a ruleset in here. When PhoMo is then run, it will create, and switch you to the new ruleset. Leaving this field blank will cause PhoMo not to save.

  • Don't save
    • If you're simply playing around and don't want to save your changes, then use this option and it will stop PhoMo from saving the changes made on run.



The default option is always 'Save current set'. When you use the auto-fillers (sections 6 and 8 on the screenshot), this option is always changed to 'Don't save'.

[top]3 - Output options

These three checkboxes determine which information is given when you run PhoMo (via 'Apply rules'). The options are:

  • Track changes?
    • This option is highly recommended if you have more than one rule being run. This will show you step-by-step the changes that each rule has on the word. This is good for debugging where a ruleset has gone wrong.

  • Show errors?
    • This option is always recommended. This will show any error messages from PhoMo that come as a result of parsing your rules. This will also help you debug your ruleset.

  • Show full logs?
    • This is not recommended unless you're helping admin or staff debug PhoMo. This will print out the full PhoMo logs (which to most people will be gibberish), but is helpful in tracing where PhoMo isn't acting as it should be.



[top]4 - Categories

The categories, as you may know, are a way to be able to affect multiple letters without having to individually type each one out. Categories are attached to the language record and not specifically PhoMo. For this reason, they cannot be edited directly in PhoMo.

This part of the form is basically just for your information/reference while writing rules. The 'scope' of the categories (ie. whether these are normal categories or IPA categories) is also written in this part of the form.

[top]5 - Rules

This is where you actually put your rules. Each rule is one line at a time. Please be aware that the order of the rules will affect the result.

Note that the tick/check button below the rules field does not save your rules to the ruleset. See section 6 for more on this.

[top]6 - Rule auto-filler

If you have grammar tables on CWS, you can use this drop-down to select a ruleset from one of your tables to load into PhoMo for testing.

The '▲' button will then load the form from the drop-down into the rules area above it.
The '✔ ' will then save the rules in the area above into the grammar table itself, not into the PhoMo ruleset.

[top]7 - Input

These are the words you want to test your rules on. You must put one word per line and you can have as many words as you like (bearing in mind that more words equals longer loading time).

If you're testing and you want the results at the bottom to also list the expected result, you can enter each word into the input field as so: word-to-change|expected-result. PhoMo will automatically parse this line and apply rules to the first part.

Note: If you're just trying to edit and save your ruleset, you still must have something in the 'Input' field. Enter a dummy word, or a word you could test that your rulesets work on, and PhoMo will successfully save.

Partial Words
In addition to the above, it is also possible to specify in PhoMo for a word to only affect part of a word. You can denote this by encasing the part you wish to run PhoMo with {{ and }}. This can also be used in irregular stems if you only want part of the word to be conjugated in the grammar tables.

For example, running the rule a/e on samaha and sa{{maha}} will produce different results. The former will become semehe while the latter will become samehe.

Also note that when using {{ and }}, that PhoMo considers this to be the full word, meaning that word boundaries will be different. For example, the rule a/e/m# (change all a to e when word begins with m) will not affect the word samaha, but will still change sa{{maha}} to samehe as the ~maha part still meets the condition of the PhoMo rule.

[top]8 - Input auto-filler

You can use the drop-downs here to automatically generate a list of 5 testing words from your current language's lexicon. The first drop-down allows you to pick which part of speech to load, the second allows you to filter this by class (if applicable).

The '▲' button will load the test words into the input area above it.
The 'æ' button (only when scope is 'IPA') will then convert any words in the input area to IPA using the pronunciation estimater algorithm (without applying rewrite rules).
Comments
[link] [quote] [move] [edit] [del] 20-Jun-23 12:31 [Deactivated User]
In the second to last sentence, "estimator" is spelled incorrectly as "estimater".
[link] [quote] [move] [edit] [del] 14-Aug-20 03:20 [Deactivated User]
Please note that nobody is informed when people leave questions on system articles. If you need help, use the forums.
Edit history
on 12/03/18 02:12+211[Deactivated User]added link
on 31/12/15 00:28+84[Deactivated User]added phomo faq link
privacy | FAQs | rules | statistics | graphs | donate | api (indev)
Viewing CWS in: English | Time now is 19-Apr-24 19:03 | Δt: 840.2631ms