Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaz-utashiro/greple-subst-desumasu
Japanese DESU/MASU dictionary for App::Greple::subst
https://github.com/kaz-utashiro/greple-subst-desumasu
Last synced: 8 days ago
JSON representation
Japanese DESU/MASU dictionary for App::Greple::subst
- Host: GitHub
- URL: https://github.com/kaz-utashiro/greple-subst-desumasu
- Owner: kaz-utashiro
- License: other
- Created: 2021-05-28T12:38:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T01:41:57.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T07:17:17.227Z (2 months ago)
- Language: Perl
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[![Actions Status](https://github.com/kaz-utashiro/greple-subst-desumasu/workflows/test/badge.svg)](https://github.com/kaz-utashiro/greple-subst-desumasu/actions) [![MetaCPAN Release](https://badge.fury.io/pl/App-Greple-subst-desumasu.svg)](https://metacpan.org/release/App-Greple-subst-desumasu)
# NAMEApp::Greple::subst::desumasu - Japanese DESU/MASU dictionary for App::Greple::subst
# SYNOPSIS
greple -Msubst::desumasu --dearu --subst --all file
greple -Msubst::desumasu --dearu --diff file
greple -Msubst::desumasu --dearu --replace file
# DESCRIPTION
greple -Msubst module based on
[desumasu-converter](https://github.com/kssfilo/desumasu-converter).This is a simple checker/converter module for the Japanese writing
styles so called DESU/MASU (ですます調: 敬体) and DEARU (である調: 常
体). This is not my own idea and the dictionary is based on
[https://github.com/kssfilo/desumasu-converter](https://github.com/kssfilo/desumasu-converter).See article [https://kanasys.com/tech/722](https://kanasys.com/tech/722) for detail.
# OPTIONS
- **--dearu**
- **--dearu-n**
- **--dearu-N**Convert DESU/MASU to DEARU style.
DESU (です) and MASU (ます) are sometimes followed by NE (ね) in an
open situation, and that NE (ね) is removed from the converted result
by default. Option with **-n** keeps the NE (ね), and option with
**-N** igonores it.- **--desumasu**
- **--desumasu-n**
- **--desumasu-N**Convert DEARU to DESU/MASU style.
Use them with **greple** **-Msubst** options.
- **--subst --all --no-color**
Print converted text.
- **--diff**
Produce diff output of original and converted text. Use **cdif**
command in [App::sdif](https://metacpan.org/pod/App%3A%3Asdif) to visualize the difference.- **--create**
- **--replace**
- **--overwrite**To update the file, use these options. Option **--create** make new
file with extention `.new`. Option **--replace** updates the target
file with backup, while option **--overwrite** does it without backup.See [App::Greple::subst](https://metacpan.org/pod/App%3A%3AGreple%3A%3Asubst) for other options.
# INSTALL
## CPANMINUS
From CPAN:
cpanm App::Greple::subst::desumasu
From GIT repository:
cpanm https://github.com/kaz-utashiro/greple-subst-desumasu.git
# SEE ALSO
[App::Greple](https://metacpan.org/pod/App%3A%3AGreple), [App::Greple::subst](https://metacpan.org/pod/App%3A%3AGreple%3A%3Asubst)
[App::sdif](https://metacpan.org/pod/App%3A%3Asdif)
[https://github.com/kssfilo/desumasu-converter](https://github.com/kssfilo/desumasu-converter),
[https://kanasys.com/tech/722](https://kanasys.com/tech/722)[greple で「ですます調」を「である化」する](https://qiita.com/kaz-utashiro/items/8f4878300043ce7b73e7)
# AUTHOR
Kazumasa Utashiro
# LICENSE
Copyright 2021-2023 Kazumasa Utashiro.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.