Skip to content

luispinho/chit-chat-check

Repository files navigation

📜 Chit-Chat-Check (C3) aka "the captions validation script"

What does this do?

Checks all .srt files in a given folder for:

  • Any common errors by running its content through this tool
  • Uppercase letters in the middle of words or other lowercase letters
  • Lines that begin with spaces
  • Word typos using CSpell

This will only run the validations for the most recent versions of the captions. For example, if there's a caption file called gen_123_v1.srt and another called gen_123_v2.srt, it will only run the validations for gen_123_v2.srt.

How to run it (after setting it up)

validate /YOUR/PATH/HERE

You can drag&drop a folder into the terminal window to get its path.

How to set it up

Clone this repository and then:

  1. Open a terminal window.
  2. Ensure you have Node installed by running node --version. If you don't have it installed, get it from their website OR from Brew
  3. Go to a terminal and cd into this folder
  4. Run npm i
  5. (Optional) Open package.json and change the hardcoded path for the script spellcheck. This script is used to run only the spellcheck using CSpell.
  6. Run the script using validate /YOUR/PATH/HERE. You'll see output in case there are any bad caption files. This runs all the validations.
  7. To just spellcheck all files, run npm run spellcheck.
    1. You can also run this from any other folder with cspell --no-progress --show-suggestions --locale "pt-PT, en-US, fr-FR, es-ES" "/YOUR/PATH/HERE/*.srt"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published