-
Notifications
You must be signed in to change notification settings - Fork 227
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 gender #443
Comments
Hey @CodeWritingCow, I agree. I mean, it could be something like: Any ideas? |
Single characters, such as |
@roastchicken I was thinking the same thing. Single characters are a good compromise between using numbers and spelling entire words. If we do use |
Sounds good to me, I'm in! Anyone wants to implement it and create a PR?
|
@bluzi I'll do it tonight! |
Awesome! |
Hey @CodeWritingCow, It looks like your PRs go mixed up, because you pushed everything to the master branch of your fork. Anyway, that's fine, the problem is I cannot merge the change because the tests failing. That's probably because you made the sex field mandatory. I think it should be optional, at least until we have it in the whole collection. |
Comment out tests for sex field. They are failing because names in collection don't have that field. Issue bluzi#443
Hi @bluzi, I've commented out the |
Opened issue #456 for adding genders. |
Hi @CodeWritingCow, I'm thinking: maybe the field itself should be optional, but if the field exists, it should only contain After that you can merge it. |
Tests run only on name files that contain a gender value. Issue bluzi#443 Update README.md to describe sex field as optional.
Hi @bluzi, I followed your suggestion and made the field optional. If the field exists in a name field, then the test checks it for validity. If the field contains only |
If you ask me, I think it should be illegal. If you don't know the sex, don't specify the sex property at all. |
I agree with @bluzi, the |
Sex field now requires a value to pass test. Also: - Add error messages to explain why a test failed. - Remove test for checking whether a sex value is a string. It's duplicating part of the "should have correct structure" test.
@bluzi and @roastchicken, I updated the test so |
* Add name "Jesus" * Fix ISO language code Use "cmn" for Chinese. * Lowercase name * Update 'Michael' Add aliases and translation. Merge "mitch" with "michael" because mitch is an alias for Michael. Delete "mitch.json." * Add gender to name file specs Add gender to file specs in readme.md. Add tests to validate each JSON's gender value. * Update michael.json Resolve merge conflict by using main repo's version of JSON file. * Make sex field optional for now Comment out tests for sex field. They are failing because names in collection don't have that field. Issue #443 * Add tests to check validity of gender Tests run only on name files that contain a gender value. Issue #443 Update README.md to describe sex field as optional. * Update gender tests - Issue #443 Sex field now requires a value to pass test. Also: - Add error messages to explain why a test failed. - Remove test for checking whether a sex value is a string. It's duplicating part of the "should have correct structure" test.
Merged it, thanks a lot! @CodeWritingCow |
@bluzi you are very welcome! Thanks for your patience. |
* Add name "Jesus" * Fix ISO language code Use "cmn" for Chinese. * Lowercase name * Update 'Michael' Add aliases and translation. Merge "mitch" with "michael" because mitch is an alias for Michael. Delete "mitch.json." * Add gender to name file specs Add gender to file specs in readme.md. Add tests to validate each JSON's gender value. * Update michael.json Resolve merge conflict by using main repo's version of JSON file. * Make sex field optional for now Comment out tests for sex field. They are failing because names in collection don't have that field. Issue #443 * Add tests to check validity of gender Tests run only on name files that contain a gender value. Issue #443 Update README.md to describe sex field as optional. * Update gender tests - Issue #443 Sex field now requires a value to pass test. Also: - Add error messages to explain why a test failed. - Remove test for checking whether a sex value is a string. It's duplicating part of the "should have correct structure" test. * Add sex to names - Issue #456 * Add sex to names - Issue #456
* Add name "Jesus" * Fix ISO language code Use "cmn" for Chinese. * Lowercase name * Update 'Michael' Add aliases and translation. Merge "mitch" with "michael" because mitch is an alias for Michael. Delete "mitch.json." * Add gender to name file specs Add gender to file specs in readme.md. Add tests to validate each JSON's gender value. * Update michael.json Resolve merge conflict by using main repo's version of JSON file. * Make sex field optional for now Comment out tests for sex field. They are failing because names in collection don't have that field. Issue #443 * Add tests to check validity of gender Tests run only on name files that contain a gender value. Issue #443 Update README.md to describe sex field as optional. * Update gender tests - Issue #443 Sex field now requires a value to pass test. Also: - Add error messages to explain why a test failed. - Remove test for checking whether a sex value is a string. It's duplicating part of the "should have correct structure" test. * Add sex to 31 names Issue #456 * Add sex to 24 names Issue #456
* Add name "Jesus" * Fix ISO language code Use "cmn" for Chinese. * Lowercase name * Update 'Michael' Add aliases and translation. Merge "mitch" with "michael" because mitch is an alias for Michael. Delete "mitch.json." * Add gender to name file specs Add gender to file specs in readme.md. Add tests to validate each JSON's gender value. * Update michael.json Resolve merge conflict by using main repo's version of JSON file. * Make sex field optional for now Comment out tests for sex field. They are failing because names in collection don't have that field. Issue #443 * Add tests to check validity of gender Tests run only on name files that contain a gender value. Issue #443 Update README.md to describe sex field as optional. * Update gender tests - Issue #443 Sex field now requires a value to pass test. Also: - Add error messages to explain why a test failed. - Remove test for checking whether a sex value is a string. It's duplicating part of the "should have correct structure" test. * Add two male names * Remove extra comma from JSON file
This was merged two years ago in #467. The architecture changes specifically were in the two commits Add gender to name file specs and Add tests to check validity of gender. The blames and logs are a bit confusing because there are two identically named pull requests with very similar commits, #467 and #474. But I believe the second, #474, was only to add |
Hi @bluzi and everyone: Should we add
"sex"
or"gender"
to the JSON file structure?Users might want to know whether a name is male, female or unisex. Especially if the name is from a language foreign to them.
Just a suggestion ...
The text was updated successfully, but these errors were encountered: