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

Fixing incorrect detection of the NewLisp language #2319

Closed
wants to merge 1 commit into from
Closed

Fixing incorrect detection of the NewLisp language #2319

wants to merge 1 commit into from

Conversation

Ignotus
Copy link

@Ignotus Ignotus commented Apr 9, 2015

The proposed sample file that contains tokenized Dutch words has been wrongly recognized as a NewLisp code in my repository.

This patch is a try to fix this ambiguity.

@pchaigno
Copy link
Contributor

pchaigno commented Apr 9, 2015

Isn't the classifier sufficient to solve this issue? I.e., does adding new samples solve it?
Otherwise, have you tested that this new heuristic doesn't break recognition of NewLisp files?

@Ignotus
Copy link
Author

Ignotus commented Apr 9, 2015

Yeah, you can try to check

bundle exec linguist samples/Text/corpus_1000.nl

No, I only tested on unit tests.

@pchaigno
Copy link
Contributor

pchaigno commented Apr 9, 2015

Yeah, you can try to check

bundle exec linguist samples/Text/corpus_1000.nl

The files used for training should always be recognized correctly (otherwise there's something really wrong with the classifier). Do you have some other files wrongly detected as NewLisp?

@Ignotus
Copy link
Author

Ignotus commented May 6, 2015

No, unfortunately. I have fixed in my project by adding .gitattributes. Probably I will create another pull request in the case if I will have enough data to test in the future.

@Ignotus Ignotus closed this May 6, 2015
@arfon arfon mentioned this pull request May 15, 2015
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
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.

2 participants