Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

pronunciation parsing for heteronyms #86

Merged
merged 1 commit into from
Jun 13, 2021

Conversation

jsch8q
Copy link
Contributor

@jsch8q jsch8q commented Jun 12, 2021

For words that are heteronyms, the pronunciation parser does not work properly.
For example, when we fetch the word 'bass' by executing

parser.fetch('bass')

the first definition should contain the pronunciation 'enPR: bās, IPA: /beɪs/' only, not the other pronunciations such as 'enPR: băs, IPA: /bæs/'.
I think this is a critical issue, since heteronyms such as the example 'bass' above have different meanings when pronounced differently. The revised code resolves this problem.

@suyashb95 suyashb95 merged commit 71f396e into suyashb95:master Jun 13, 2021
@suyashb95
Copy link
Owner

@jsch8q Thank you for this!

ZOUHEIRBN added a commit to ZOUHEIRBN/WiktionaryParser that referenced this pull request Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants