Skip to content

Conversation

@camelCaseD
Copy link
Contributor

This PR fixes issues with pinyin searching for example properly detecting dead tones, converting ü & v characters to u:, and updated database to have all pinyin lower cased for proper detection of proper nouns.


_.each(words, function(word) {
var pronunciation = word.pronunciation;
var prettified = pinyin.prettify(pronunciation.slice(1, pronunciation.length - 1).replace(/u\:/g, "v"));
Copy link
Owner

Choose a reason for hiding this comment

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

Please fix the whitespace here

Copy link
Owner

@johnheroy johnheroy left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Sorry for getting back so late on this. Just a question about whitespace--also for Sequelize what does the "logging: false" option do?

@camelCaseD
Copy link
Contributor Author

camelCaseD commented Mar 8, 2017

No worries. The logging option disables the logging that Sequelize does during each query or it'll ends up polluting logs when using this as a library in another project when enabled. As for the whitespace I can't quite tell what the rule is or remember. Is it tabs or spaces?

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