Transliteration Utility
Sandhi Analyzer (IAST)
A research utility for splitting joined words.
Analysis log will appear here...
Normalization & Transformation Log
- System initialized.
How to Use Lipisetu
This tool is designed for students, researchers, and enthusiasts to accurately transliterate Sanskrit text and perform basic linguistic analysis.
1. Transliteration Utility
This is the main mode for converting text, located in the primary column. The tool automatically handles most of the complexity for you.
- Input: Paste or type text into the input box. You can use IAST (e.g., `nārāyaṇa`), Devanagari (e.g., `नारायण`), Telugu (e.g., `నారాయణ`), simple Roman (e.g., `Narayana`), HK, or ITRANS.
- Upload .txt Button: Click this button (right above the input box) to load a plain text file directly into the input area.
- Auto Detect Button: This is the default and recommended mode. It automatically guesses the input type and converts it to the most logical output (e.g., Roman input becomes Devanagari, Devanagari/Telugu input becomes IAST).
- → IAST Button: Forces the tool to convert your input *to* IAST. Use this if you are pasting Devanagari or Telugu and want the IAST equivalent.
- → Target Script Button: Forces the tool to convert your input *to* the selected Target Script (Devanagari or Telugu).
2. Sandhi Analyzer (IAST)
This is a research utility for analyzing joined words (Sandhi). On desktop, it's on the right. On mobile, tap the "Sandhi Analyzer" button.
- Enter a *single* IAST word (e.g., `mahotsava` or `rāmaśca`).
- Click "Analyze Sandhi". The tool will propose a split (e.g., `maha/ā + utsava`), identify the Sandhi type, and give a confidence score.
- Click "Show Advanced Log (for researchers)" to see the step-by-step logic the analyzer used to reach its conclusion.
Controls & Features
- Nasalization Mode: Choose "Sanskrit" to correctly convert `ṃ` to its homorganic nasal (e.g., `saṃjaya` → `सञ्जय`). Choose "General" to always use the Anusvāra (e.g., `saṃjaya` → `संजय`).
- Target Output Script: Select whether "→ Target Script" mode outputs to Devanagari or Telugu.
- Floating Copy Button: Use the "Copy" button inside the output box for quick copying.
How It Works: Mapping Data
The tool works using a set of comprehensive mapping tables. The JavaScript logic reads your IAST input character by character and consults a map to find the correct Devanagari equivalent. A state machine correctly handles vowel matras (signs) and viramas (half-forms).
Here is a small example of the internal mapping data:
// Example of the IAST to Devanagari Map
const DEV_VIRAMA = '\u094D'; // The '्' character
const IAST_TO_DEV_MAP = new Map([
// Vowels
['a', 'अ'],
['ā', 'आ'],
// Consonants (mapped to Virama form)
['k', 'क' + DEV_VIRAMA], // 'क' + '्' = 'क्'
['n', 'न' + DEV_VIRAMA], // 'n' + '्' = 'न्'
['m', 'म' + DEV_VIRAMA], // 'm' + '्' = 'म्'
// Special
['ṃ', 'ं'],
['ḥ', 'ः']
]);
// Example of the Vowel Matra Map
const MATRA_MAPS = {
devanagari: {
'आ': 'ा', // Independent 'ā' maps to 'ā' matra
'इ': 'ि', // Independent 'i' maps to 'i' matra
}
};
About the Creator
This tool was created and is maintained by Sparsh Varshney, a BAMS Student and Ayurvedic Researcher.
ORCID: 0009-0004-7835-0673
Website: Amidha Ayurveda
GitHub: sciencewithsaucee-sudo
Contact: sparsh@amidhaayurveda.com