sevvalmehder / Tur2Spell

Turing machine implementation for spelling Turkish words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tur2Spell

This project is a Turing Machine simulator for spelling Turkish words.The detailed information about spelling and turing machine is here.

Examples

According to 3 rules for spelling:

  1. If there is consonant between two vowels in word, this consonant has a syllable with the next vowel. For example: ara –> a-ra
  2. If there are two repeated consonant in word, the first one has a syllable with the previous vowel and the second one has a syllable with the next vowel.
    For example: sevmek –> sev-mek
  3. If there are three repeated consonant in word, the last one has a syllable with the next vowel.
    For example: altlık -> alt-lık

Usage

Linux

For run with GUI: python3 gui.py
For run without GUI: python3 main.py

Windows

You can run Tur2Spell.exe directly.

Resources

For spelling rules: TDK
For Turing Machine details: Introduction to the Theory of Computation by Michael Sipser

About

Turing machine implementation for spelling Turkish words


Languages

Language:Python 100.0%