guesslang icon indicating copy to clipboard operation
guesslang copied to clipboard

Request for `diff` `log` and `less`

Open ghost opened this issue 4 years ago • 4 comments

As a web designer who's always compiling, I'd really benefit from diff log and less support.

ghost avatar Jul 28 '21 13:07 ghost

Diff: :heavy_check_mark: more than enough files publicly available for training https://github.com/search?q=extension%3Adiff :warning: Diff support could clash with basically all the other languages. As Diff code is other languages code with special markups

LESS: :heavy_check_mark: more than enough files publicly available for training https://github.com/search?q=extension%3Aless :warning: Could clash with CSS. Other languages should be fine.

Log: I'm not sure about which kind of files/logs you are referring to @4086606

yoeo avatar Jul 29 '21 20:07 yoeo

Here's a log file: https://gist.github.com/4086606/d8df1e4c56eb3f0e5b8f95690d637fd7#file-exthost-log

ghost avatar Jul 29 '21 20:07 ghost

Thanks for the example.

Log: :heavy_check_mark: more than enough files publicly available for training https://github.com/search?p=100&q=extension%3Alog&type=Code :warning: different log files can have different structures depending on the log source, and the model that I use works poorly when the training files don't have the same underlying structure.

To sum it up:

  • I will add LESS to the next batch of languages to support
  • I may add Diff, if it doesn't break the detection confidence of other languages
  • and I think that I will skip Log, because the model is not smart enough to handle such a flexible format

yoeo avatar Jul 29 '21 20:07 yoeo

Alright that's fine by me. Thanks for the quick replies

ghost avatar Jul 29 '21 20:07 ghost