Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard and matching in the .dic files #45

Open
Finnboy94 opened this issue Oct 25, 2023 · 2 comments
Open

Wildcard and matching in the .dic files #45

Finnboy94 opened this issue Oct 25, 2023 · 2 comments

Comments

@Finnboy94
Copy link

Hello,
I have started creating a community dictionary for Finnish locally. Is it possible to use matching, e.g. for all words starting with "salasan" IBMTTS would do whatever I set it to do for the salasan part and then add the rest of the word.

@amirsol81
Copy link
Collaborator

@Finnboy94 First and foremost, good to hear that you've started such a project!
As for your question, I'd suggest testing it. Since I don't know Finnish, I can't tell if it does what you want. However, you can test it by creating an entry in your Finnish Root file and checking if the entry affects its derrivated/inflected forms. This is also what we do for US English.

@Finnboy94
Copy link
Author

Hello,
hmm, well I have an entry like this:
salasana ^[.0sala.1sana]
and that works, but I'd like to have an entry that matches all occurrences of, say, salasan, replaces them and then adds the rest of the word. With REGEXP I could do something like:
^salasan* ^[.0sala.1san*]
but at least that doesn't work. Weird...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants