From 729f20b8b8e838f3b19501fc2480fb8e27f34fa9 Mon Sep 17 00:00:00 2001 From: Jordan <37647414+linuxgoose@users.noreply.github.com> Date: Fri, 28 Mar 2025 21:23:48 +0000 Subject: [PATCH] Update caverphone2.py --- linguistics_robin/phonetics/caverphone2.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linguistics_robin/phonetics/caverphone2.py b/linguistics_robin/phonetics/caverphone2.py index 5a11b03ad7548dedaebfa12e6e4354e8a8954927..e3a77ba9c0750de4909c90ec4b419237a8c50f0e 100644 --- a/linguistics_robin/phonetics/caverphone2.py +++ b/linguistics_robin/phonetics/caverphone2.py @@ -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)