flourite icon indicating copy to clipboard operation
flourite copied to clipboard

Automatically detects a programing language from a given string

Results 12 flourite issues
Sort by recently updated
recently updated
newest added

* Bump development Nodejs version to v20.12.x * Bump dependencies, but not ESLint because v9 sucks * Update Contributor Covenant's Code of Conduct template to v2.1 * Bump year on...

Add Swift as a supported language to detect Learn swift here: - https://www.swift.org/getting-started/ - https://learnxinyminutes.com/docs/swift/ - https://www.tutorialspoint.com/swift/index.htm Some test cases: - https://rosettacode.org/wiki/Monte_Carlo_methods#Swift - https://rosettacode.org/wiki/Sorting_algorithms/Heapsort#Swift - https://rosettacode.org/wiki/Sorting_algorithms/Quicksort#Swift - https://rosettacode.org/wiki/Sorting_algorithms/Merge_sort#Swift - https://rosettacode.org/wiki/Sorting_algorithms/Selection_sort#Swift...

enhancement
difficulty: medium

Many regex patterns in many languages are missing boundaries to separate the keywords from other strings. Which means they can be matched even if they're inside another word. **Example:** [Python's...

bug
difficulty: easy

Some regular expressions that are currently on the `/src/language` directory are somewhat inefficient. Take this as an example: https://github.com/teknologi-umum/flourite/blob/32bc6b7bbac2a2cc49fe42ac8412feec7f7500fc/src/languages/clojure.ts#L4-L7 That pattern might be optimized to` /^\s*\(ns(\s+)(.*)(\))?$/` to minimize the steps...

enhancement
difficulty: easy

Add Perl language support for the detection. You can learn Perl first here: - https://learnxinyminutes.com/docs/perl/ - https://www.tutorialspoint.com/perl/index.htm Some test cases: - https://rosettacode.org/wiki/Hello_world/Standard_error#Perl - https://rosettacode.org/wiki/FizzBuzz#Perl - https://rosettacode.org/wiki/Palindrome_detection#Perl - https://rosettacode.org/wiki/Happy_numbers#Perl - https://rosettacode.org/wiki/Most_frequent_k_chars_distance#Perl...

enhancement
difficulty: easy

I get this error `flourite__WEBPACK_IMPORTED_MODULE_12___default(...) is not a function` When running the example: `const code = flourite('console.log("Hello World");');`

need reproduction

See https://github.com/teknologi-umum/flourite/blob/master/CONTRIBUTING.md

enhancement
difficulty: hard

See https://github.com/teknologi-umum/flourite/blob/master/CONTRIBUTING.md

enhancement
help wanted
difficulty: easy

See https://github.com/teknologi-umum/flourite/blob/master/CONTRIBUTING.md

enhancement
difficulty: hard

See https://github.com/teknologi-umum/flourite/blob/master/CONTRIBUTING.md

enhancement
difficulty: medium