How do i split up /gj/ to become /g j/ at the end of a word and have the first word end with g and the next start with j (or i to fix phonotactic errors)
PhoMo Examples
▲
20▲ 20 ▼ 0
Reference of Examples using PhoMo
This public article was written by [Deactivated User], and last updated on 7 Mar 2019, 06:56.
[comments] [history] cws help
5. PhoMo FAQ
6. PhoMo Page
7. PhoMo Rules
10. X-SAMPA to IPA
This article is also coupled with the ones below:
[PhoMo FAQs]
[PhoMo Rules Help]
[PhoMo Page Help]
[top]Replace rule examples
This section will give examples of the types of changes you can achieve using replace rules with both local conditions and global conditions. These examples all assume that V is any vowel and C is any consonant.
Simple 1-for-1 replacement
Input word | PhoMo rule | Result word |
---|---|---|
tahama | a/e | teheme |
replace all a with e |
Category for 1 replacement
Input word | PhoMo rule | Result word |
---|---|---|
tahimu | V/e | teheme |
replace all V (vowels) with e |
Category for category replacment
For this rule, we will assume that V is a,e,i,o,u and L is á,é,í,ó,ú.
Input word | PhoMo rule | Result word |
---|---|---|
tahimu | V/L | táhímú |
replace V with corresponding L |
Replace nth instance of letter
This uses the @ specifier as part of the CHG statement. The index given can be either negative or positive, starting with -1 and 1 respectively.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | a/e@1 | tehama |
replace only a #1 with e |
Delete a letter
Input word | PhoMo rule | Result word |
---|---|---|
tahama | a//h_m | tahma |
delete all a between h and m |
Delete a category
Input word | PhoMo rule | Result word |
---|---|---|
tahama | V//_# | taham |
delete all V (vowels) at the end of a word |
Infix in certain environment
Input word | PhoMo rule | Result word |
---|---|---|
tahama | /j/VC_V | tahjamja |
infix j after a vowel then a consonant, and before a vowel (ie. after intervocalic consonant) |
Change double consonant (ipa scope)
Here we use the % character to show 'the same letter that we're currently looking at'. This doesn't mean much to you at the moment, but have a look at the rules below.
Input word | PhoMo rule | Result word |
---|---|---|
tahhama | h/k/_% | takham |
change h to k when before itself. |
Lengthen double vowel (ipa scope)
Here we use the % character to show 'the same letter that we're currently looking at'. This doesn't mean much to you at the moment, but have a look at the rules below.
Input word | PhoMo rule | Result word |
---|---|---|
tahaam | a/:/%_ | taha:m |
change a to a: when doubled |
Remove all double vowels
Here we use the % character to show 'the same letter that we're currently looking at'. This doesn't mean much to you at the moment, but have a look at the rules below.
Input word | PhoMo rule | Result word |
---|---|---|
tahaama | V//_% | tahama |
delete V (vowel) when doubled |
Reverse part of a word (metathesis)
Here we use the ? character in the CHG argument to show 'the reverse of the TRG argument'.
Input word | PhoMo rule | Result word |
---|---|---|
tahaam | aC/?/a_ | tahama |
change am to ma when after a |
Affix letter before nth instance of letter/category
This uses % to let you 'replace a letter(/category) with itself' and an additional letter. The index given can be either negative or positive, starting with -1 and 1 respectively.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | a/k%@-1 | tahamka |
change the last instance of a to ka |
Affix letter after nth instance of letter/category
Input word | PhoMo rule | Result word |
---|---|---|
tahama | a/%k@1 | takhama |
change the first instance of a to ak |
[top]Affix rule examples
This section will give examples of the types of changes you can achieve using affix rules with global conditions. These examples all assume that V is any vowel and C is any consonant.
Prefix
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/sa#/C# | satahama |
prefix with sa if begins with C (consonant) |
Suffix
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/#k/#V | tahamak |
suffix with k if ends with V (vowel) |
Circumfix (both suffix and prefix)
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/a#k | atahamak |
circumfix with a- -k |
Infix at position
Note that infixes start counting at 1.
Input word | PhoMo rule | Result word |
---|---|---|
tham | #/#á@1 | táham |
infix with á after letter #1 |
Infix at negative position
This is useful for infixing relative to the end of the word. Please note that the last letter starts at -1. In previous versions of PhoMo, this was -0, this is no longer the case.
Input word | PhoMo rule | Result word |
---|---|---|
tahm | #/á#@-1 | tahám |
infix with á before letter #1 from the end |
Affix letter in category at nth position
Cannot be used to circumfix. This rule must stand by itself; all other changes to be made separately.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/#C@2 | tahamah |
suffix with C (consonant) found at letter #2 |
Reduplicate (whole word)
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/## | tahamatahama |
reduplicate whole word |
Reduplicate (part of a word)
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/##@1^2 | tatahama |
reduplicate from letter #1 for 2 letters |
Delete part of a word
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/@1^2 | hama |
delete from letter #1 for 2 letters |
Move part of a word (w/ indices)
Note that both the > index and the @ index are both relative to the position in the original word.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/>1@3^2 | hatama |
move from letter #1 for 2 letters to letter #3 |
Move part of a word (w/ conditions)
You can only use local conditions. Using a global condition will throw an error. Also note that this particular rule can produce large logs; so beware when enabling these.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/>#_@_#^2 | hamata |
move from 2 letters from start of word to the end |
Move part of a word (without removing original part)
A normal move statement is broken into two actions: remove the original part, add the new part in the new position. Using the character ! directly after > will suppress the removal of the original part. Effectively this is like a duplication to another position statement.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/>!#_@_#^2 | tahamata |
duplicate 2 letters from start of word to the end |
Reverse portion of a word (from given point)
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/?3 | taamah |
reverse word from letter #3 |
Reverse portion of a word (given length)
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/?3^2 | taahma |
reverse word from letter #3 for 2 letters |
Adpositioning a separate word
Using a space in PhoMo would cause it to break - so these are removed. However, you can use - to add another word.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/#-na | tahama na |
add word na to the end of the word |
Splitting a word
You can also use - to split a word. Note that you cannot do this using a replace rule.
Input word | PhoMo rule | Result word |
---|---|---|
tahama | #/#-@4 | taha ma |
Split word at after letter #4 |
[top]Local condition examples
In these examples, the titles will be in relation to x, where this is the letter to be replaced.
Change x after letter
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/h_ | tahem |
replace a with e after h |
Change x before letter
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/_h | teham |
replace a with e before h |
Change x between two letters
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/h_m | tahem |
replace a with e after h and before m |
Change x before/after a category
The above three examples can all be done using categories also.
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/C_m | tahem |
replace a with e after C (consonant) and before m |
Change x before/after multiple letters
You can use more than one letter also.
Input word | PhoMo rule | Result word |
---|---|---|
taham | h/k/_am | takam |
replace h with k before am |
Change x before/after a mix of letters and categories
Types can also be mixed.
Input word | PhoMo rule | Result word |
---|---|---|
taham | h/k/_Vm | takam |
replace h with k before V (vowel), then m |
Change x at beginning of word
In local conditions # is used to denote the boundary of a word.
Input word | PhoMo rule | Result word |
---|---|---|
taham | t/d/#_ | daham |
replace t with d at the beginning of a word |
Change x at end of word
In local conditions # is used to denote the boundary of a word.
Input word | PhoMo rule | Result word |
---|---|---|
taham | m/n/_# | tahan |
replace m with n at the end of a word |
Change x after mix of all
You can use letters, categories and end of word all together.
Input word | PhoMo rule | Result word |
---|---|---|
taham | h/k/_Vm# | takam |
replace h with k before V (vowel), then m at the end of a word |
Change x before a letter at some point afterwards
You can use * as a wildcard between _ and another letter/#. Please note that in a condition like _*a, if a is the next letter, it will return true.
Input word | PhoMo rule | Result word |
---|---|---|
taham | t/d/_*m | daham |
replace t with d if it is before an m anywhere in the word. |
Change x before a letter at some point afterwards
You can use * as a wildcard between _ and another letter/#. Please note that in a condition like a*_, if a is the previous letter, it will return true.
Input word | PhoMo rule | Result word |
---|---|---|
taham | h/ħ/t*_ | taħam |
replace h with ħ if it is after a t anywhere in the word. |
[top]Global condition examples
Change all x if word begins in a letter
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/t# | tehem |
replace all a with e if word begins with t |
Change all x if word ends in a letter
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/#m | tehem |
replace all a with e if word ends with m |
Change all x if word contains a letter
The condition will return true if the conditional letter (h in the below example) is also the first or last letter, not just between the two.
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/h | tehem |
replace all a with e if word contains h |
Change all x with categories
Just like other rules, letters can be replaced with categories, or mixed with categories also.
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/tV# | tehem |
replace all a with e if word begins with t, then V (vowel) |
Change all x if word contains y number of z
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/V=2 | tehem |
replace all a with e if word contains two V (vowels) |
Change all x if word contains less than y number of z
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/V=<3 | tehem |
replace all a with e if word contains less than three V (vowels) |
Change all x if word contains more than y number of z
Input word | PhoMo rule | Result word |
---|---|---|
taham | a/e/V=>1 | tehem |
replace all a with e if word contains more than one V (vowel) |
This article lists a number of basic actions you can make on words by using PhoMo 3.0. Have a go at combining and changing some of these in PhoMo to get a good feel for it. If there's something you feel should be added, please contact one of our staff members!
Comments
— Note from staff or admin —
If you want help, don't leave comments here. No one is alerted that someone has posted on this article, it is not regularly checked, and you can't be automatically alerted if someone tries to respond to you.
Please use the boards instead.
If you want help, don't leave comments here. No one is alerted that someone has posted on this article, it is not regularly checked, and you can't be automatically alerted if someone tries to respond to you.
Please use the boards instead.
So I'm utterly confused...
I'm trying to create a rule that affixes -an to words that end in a consonant but -n to words that end in a vowel. I've attested that #/#an and #/#n both work, but how can I combine those two? I've tried something like #/#an/C_/#n and #/#an/#C_/#n but keep getting an error ("You cannot use a LOCAL condition with AFFIX change"). Is there any way to do what I want?
I'm trying to create a rule that affixes -an to words that end in a consonant but -n to words that end in a vowel. I've attested that #/#an and #/#n both work, but how can I combine those two? I've tried something like #/#an/C_/#n and #/#an/#C_/#n but keep getting an error ("You cannot use a LOCAL condition with AFFIX change"). Is there any way to do what I want?
I'm trying to write a hiatus resolution rule; I want to insert a glottal stop [ʔ] between two vowels (so that, for example, /siat/ becomes [siʔat]). This article really isn't helping me with that. Does anyone have an idea of how to write that rule?
@depthofsorrow, be easier to get a response on the boards, but this is the easiest way to do this: V/éda/_#
Edit history
on 12/03/18 02:11+211[Deactivated User]added link
on 29/05/16 12:27-18653[Deactivated User]Fixed weird duplication
on 30/04/16 04:17-135[Deactivated User]hopefully, the last fix
on 30/04/16 04:16-27[Deactivated User]fixing
on 30/04/16 04:15-28[Deactivated User]fixing... still..
on 30/04/16 04:10-4[Deactivated User]fixing
on 30/04/16 04:06+6921[Deactivated User]fixing again
on 30/04/16 04:05+11905[Deactivated User]fixing tags
on 10/03/16 19:50+3[Deactivated User]added infix example using replace rules
on 31/12/15 00:28+88[Deactivated User]added phomo faq link