Usage
Basic Usage
Prepare your input file (csv, xlsx, txt, tsv) with at least a ‘word’ column.
Open a terminal and navigate to the Jiwar directory.
Run the command:
python jiwar.pyFollow the prompts to select your language, input file, and desired measures.
Example Scenarios
Scenario 1: Calculating All Measures for English Words
Prepare an input file named
english_words.csvwith a ‘word’ column.Run:
python jiwar.pyWhen prompted, enter:
Language:
Englishoren-usUse built-in corpus:
y(short for ‘yes’)Input file:
C:/documents/jiwar/data/input/english_words.csvMeasures:
all
Scenario 2: Calculating Only Orthographic Measures for Spanish Words
Prepare an input file named
spanish_words.csvwith a ‘word’ column.Run:
python jiwar.pyWhen prompted, enter:
Language:
SpanishoresUse built-in corpus:
y(short for ‘yes’)Input file:
C:/documents/jiwar/data/input/spanish_words.csvMeasures:
orth
Scenario 3: Using a Custom Corpus for Hindi
Prepare your custom Hindi corpus and save it as
hindi_corpus.csvin thedata/corpus/user_loaded/directory. The custom corpus must include a ‘word’ column.Prepare your input file named
hindi_words.csvwith a ‘word’ column.Run:
python jiwar.pyWhen prompted, enter:
Language:
HindiorhiUse built-in corpus:
n(short for ‘no’; since Hindi doesn’t have a built-in corpus)Custom corpus filename:
hindi_corpus.csvInput file:
C:/documents/jiwar/data/input/hindi_words.csvMeasures: Choose your desired measures (e.g.,
all,orth,phon, etc.)
Tips
If you’re unsure about the supported languages or measures, type
helpat any prompt for more information.To exit the program at any time, type
exitat any prompt.For languages without built-in IPA support, consider adding an ‘IPA’ column to your custom corpus for the generation of phonological and phonographic measures.
For more information on specific measures, see Measures. For language support details, see Languages.