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

Add Bulgarian language implementation #520

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kgizdov
Copy link

@kgizdov kgizdov commented May 4, 2023

Changes proposed in this pull request:

Add Bulgarian language implementation

Status

  • READY
  • HOLD
  • WIP (Work-In-Progress)

How to verify this change

from num2words import num2words

bg_text = num2words(12.56, lang="bg")
bg_text = num2words(12.56, to="currency", lang="bg")

Additional notes

Used daily in our codebase in a private fork. Would like to contribute upstream and clean up our deployment process.

words.append(self.pluralize(chunk, SCALE[chunk_len]))

return ' '.join(words)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not a good decision to put boolean feminine parameter, because you have 3 genders - masculine, feminine and neuter. Later it will be a problem with backward compatibility.
Like here.
I suggest adding the gender parameter.

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

Successfully merging this pull request may close these issues.

2 participants