Igpa is a simple jQuery plugin that you can call on a selector to translate to pig latin.
- include jquery and igpa
- call pig()
<script src="jquery.min.js"></script>
<script src="igpa.js"></script>
<script>
$("p").pig({
translate: true,
trunc: "a"
});
</script>
- translate: true or false (default true). Indicates if you do or do not translate to pig latin
- trunc: (default 'a') this is the letter you append to the end of each word in your copy.