Data types in Grails and MongoDB

In working with Grails and MongoDB, I found myself building out some data type documentation I wasn’t able to find.  For your coding pleasure, please find…

Groovy Type Mongo Type
Integer Int32
Double Double
Long Int64
Float String
Short Int32

Grails is great, but the documentation is limited and the dates/versions of the references matter a lot (it seems Grails has been through many versions and many recommended approaches, not all of which are backwards-compatible).  The above mapping is for Grails 2.4.4 and the mongodb plugin 3.0.2, atop MongoDB 2.6.3.

Inductive-Deductive Loop

Last year I went looking for an “inductive-deductive loop” image (I was trying to convince stone-cold scientific method biologists that it really is okay to start science from observations), but I couldn’t find anything close to the simple diagram I was envisioning.  So, I drew my version on a Post-it note, and I’m sharing it now for posterity and for Google Images.

My talking point here is that scientific inquiry is both inductive and deductive.  Although many disciplines privilege a single type of reasoning, it’s better to integrate both approaches. With a circular view, we are free to enter problems where it’s most straightforward to start them — exploring the data, taking hypotheses or patterns to their conclusions, or considering how known theories might manifest — knowing that we’ll do a complete investigation in the end.  We trace as far as we can through the loop, verifying our interpretations through multiple methods.  Sometimes we cycle around the loop multiple times.

For instance, if you’re heavy on data and light on abstractions, you might start by trying to find patterns in the observations.  Once you identify some patterns, you formalize those patterns into a theory.  Given theory, you can generate some hypotheses based on the implications of that theory.  You then collect more data to disprove those hypotheses.  The new observations might suggest new patterns, starting another round of the loop.  You don’t limit yourself to collecting data only to disprove hypotheses, though — you also look at data that hasn’t been deliberately collected under the premises required by your hypotheses.  By looking at all the observations, you can start to investigate when the premises themselves hold.

The inductive-deductive loop is the structure of scientific inquiry.

Theory produces Hypothesis produces Observations produces Pattern produces Theory; the first three are deductive; the last three are inductive

Introduction to ASL Theoretical Linguistics

One of my favorite parts of studying linguistics was being presented with data and being asked to find the system within it. Language data, with linguistic theory’s insistence that everything must make sense, make the most excellent data and logic puzzles.

Screenshot of ASL Linguistics Problems

As part of preparing for a spatial grammar-heavy meeting of the Montgomery Blair High School Linguistics Club, I developed three American Sign Language morphology problems.  These problems illustrate interesting properties of American Sign Language that spoken languages do not have (non-manual markers, spatial agreement, and a rich temporal inflection system based in manual phonology).

Try your hand at doing the problems if you’re interested in any of the following:

  • What it means to do theoretical linguistics (or the sort of logic skills that linguists develop)
  • Unique properties of spatial languages
  • Basic American Sign Language linguistics
  • Similarities between American Sign Language and other world languages

Unlike most materials on ASL linguistics, the problems don’t assume that readers are fluent in American Sign Language or in linguistic theory — I developed these problems because I couldn’t find any resources aimed at an intelligent lay non-Deaf audience.  The problems deliberately walk users through the steps to answer a question, whereas most theoretical linguistics problem sets jump straight to the questions at hand and assume existing familiarity with linguistic features not observed in English.

Once the club and I meet, I’ll post the answer sheet as well.

Setting up Gummi to use TeX Live & other external packages

I’ve been delving into Gummi recently. As a LaTeX editor, it’s simple and clean, and I appreciate that it balances the directness of the commands (win!) with instant visual reassurance of the output format (double win!).

“Simple”, though, means that it isn’t entirely obvious how to get Gummi to use additional external packages (like, say, geometry, which is included in texlive-latex-base from the Ubuntu Software Center — that package worked for me only when building the file from the command line).  Since people have asked about getting Gummi to play nice with other style and class files but haven’t gotten responses (like here and here), I thought I’d post my solution.

The short answer: To use other packages with Gummi, you need to let Gummi know where those materials are.  Enter the magical symbolic link.

With details:

  1. Figure out where your Gummi configuration files are.  (For me, they live at /home/pt/.config/gummi/.  Yes, that’s a hidden folder.  If you’re working from the GUI file browser,  CTRL+H will toggle hidden visibility.)

  2. Figure out where you installed the extra packages, from TeX Live or whatever else.  (For me, they live at /usr/share/texmf-texlive/.)

  3. Create a symbolic link within the Gummi configuration folder to the TeXLive files:

    cd ~/.config/gummi  
    ln -s /usr/share/texmf-texlive
    

Experimentation suggests that pointing Gummi at the top-level directory is sufficient for access to all of the subfolders.  If it fits the structure of your machine better, you could also copy or move the files — but I’d stick with a symbolic link unless you have a good plan in mind.

This solution is the result of a bit of experimentation based on guesses about how Gummi might be coded.  I am not a Gummi developer, and I’d welcome insights from anyone who knows the intended design or codebase.

Screenshot of Gummi -- LaTeX code on left, preview on right

Screenshot of Gummi in Action

Introduction to ASL Linguistics

During the discussion we focused on introducing different non-voiced communication forms and on linguistic anthropology/linguistic creativity.  We postponed theoretical linguistics until another time (in which we did some experiential learning on morphology). This page consists of a set of links, prepared videos, and notes designed to support real-time interaction with students at the linguistics club at Montgomery Blair High School.

The big take-away is that American Sign Language is not “English on the hands”.  ASL is independent from English both in grammar and linguistic culture.

Introduction

  • Caveats for posterity: I’m hearing, I don’t possess native-like fluency in ASL, and I don’t have an advanced degree in this; I do have general and ASL linguistic training, I read widely, and I’m more or less aware of what I don’t know
  • What are some ways deaf people communicate? [YouTube]
  • Compare ASL structure [.avi | .ogv | .gif] with PSE structure [.avi | .ogv | .gif] with English structure [.txt]
  • Charts might help [fingerspelling: ASL | BSL | LSF] [cued speech]

Anthropological Linguistics

  • Big idea: Linguistic creativity
  • ABC stories [YouTube]
  • Sign jokes [King Kong, “please but”, environments, CODAs]
  • Music & poetry [YouTube]
    • Rhyme (handshape, movement path, location, non-manual markers)
    • Rhythm (movement, handedness)
    • Meter (heavy & light syllables)
  • Also, Black ASL [WaPo | HuffPost | YouTube (uncaptioned but 5:37 has a chart)]

Theoretical Linguistics [postponed]

  • Big idea: Spatial grammar
  • Basic structure
    • English consonants have place and manner of articulation, plus voicing [IPA chart]
      • Place of articulation (cat/tat/pat)
      • Manner of articulation (pat/bat/mat)
    • ASL signs have five “parameters”
      • Handshape (think/know) *
      • Location (summer/dry) *
      • Palm orientation (sock/star)
      • Movement (sit/chair) *
      • Nonmanual markers (late/not yet)
  • The movement piece is more complicated (Christian/Congress, one-handed children/die) –> movement-hold theory
    • M (always)
    • H (color, study)
    • M H (think, know, my, sit)
    • H M H (week, guess)
    • M H M H (Congress, flower)
    • M M M H (chair, school, paper)
    • Other structures are possible, but not any other structure (e.g., exclude H M)
  • Nonmanual markers are extremely important grammatical markers; they are frequently unrecognized by hearing people
    • Questions (yes-no/wh)
    • Rhetorical questions
    • Adjectives and adverbs (mm, th, cha, cs — more in a .doc)
    • Topicalization
  • Grammatical use of space of ASL (verb classes, classifiers, aspect, etc.)

Further Resources

  • Deaf people with linguistics training
  • ASL [language | grammar]
  • Gallaudet University [map]
    • 10th-12th grade summer ASL immersion [link]
    • Linguistics department [dept. | event blog]
    • Center for Continuing Studies teaches ASL courses for $230/credit (most classes are 3 credits) [dept.]
    • Theatre performances are captioned or voice-interpreted [link]
  • Books
    • Linguistics of American Sign Language by Valli et al. (ASL linguistics textbook)
    • Signing Naturally (ASL language textbook series)
    • The American Sign Language Handshape Dictionary by Tennant and Brown (dictionary)
    • For Hearing People Only by Moore and Levitan (deaf culture/language in context)
  • Apps
    • ASL Dictionary — 5000 signs [Android | iPhone]
    • ASL spelling game — beginner’s fingerspelling app [Android]
    • Marlee signs — phrases and words [iPhone]
  • Media
    • “Switched at Birth” (ABC Family)
    • YouTube has a variety of performances, lectures and vlogs