~linuxgoose/linguistics-robin

ad3fdc410fa157522dd1e00f4a49210e9daa456f — Jordan Robinson 8 months ago 4b409a6 + 59cf638 v0.5.8
Merge pull request #24 from linuxgoose/23-caverphone-2-__vowels-undefined-error

23 caverphone 2   vowels undefined error
2 files changed, 5 insertions(+), 4 deletions(-)

M linguistics_robin/__init__.py
M linguistics_robin/phonetics/caverphone2.py
M linguistics_robin/__init__.py => linguistics_robin/__init__.py +1 -1
@@ 10,4 10,4 @@ from .phonetics import (Soundex,
                        Caverphone,
                        Caverphone2)

__version__ = '0.5.7b1'
__version__ = '0.5.8'

M linguistics_robin/phonetics/caverphone2.py => linguistics_robin/phonetics/caverphone2.py +4 -3
@@ 2,9 2,7 @@ from .phonetic_algorithm import PhoneticAlgorithm
from ..utils import check_str, check_empty
from typing import List
import string
    
# defined vowels as well as additional characters defined in the specification ("æ","ā","ø")
__vowels : List[str] = ["a","e","i","o","u","æ","ā","ø"]  


class Caverphone2(PhoneticAlgorithm):
    """


@@ 13,6 11,9 @@ class Caverphone2(PhoneticAlgorithm):
    def __init__(self):
        super().__init__()

    # defined vowels as well as additional characters defined in the specification ("æ","ā","ø")
    __vowels : List[str] = ["a","e","i","o","u","æ","ā","ø"]  

    def phonetics(self, word):
        # Step 1.
        check_empty(word)