import { State, Rule } from "../../state-machine";
import { SAMPA } from "../../sampa";

export const ïState = new State(
  "ï",
  [
    "thai",
    "aie"
  ],
  new Map([
    ["*", new Rule(null, SAMPA.FR.vowels["i"], 1)],
    ["aie", new Rule({type: "regExp", regExps : [{direction :"after", regExp: /e/},{ direction: "before", regExp : /[ao]/ }]}, SAMPA.FR.semiVowels["j"], 1)],
    ["thai", new Rule({type: "regExp", regExps : [{direction: "before", regExp: /th?a/ }]}, SAMPA.FR.semiVowels["j"], 1)],
  ])
);
